Updating .txt file in J2ME located in Binary package - java-me

I have developed J2ME application that read data from product.txt file located in binary package using following code
InputStream is = getClass().getResourceAsStream("/product.txt");
int size = is.available();
byte bytes[] = new byte[size];
is.read(bytes, 0, size);
str = new String(bytes, 0, size);
Now I want's to update product.txt file located in binary package using J2ME code.
I have tried Following code to get relative path of product.txt
String path=getClass().getResource("/product.txt").getPath();
But it does not works on J2ME platform.
How to get relative path Of product.txt file located in binary package?

You can't change a file that is baked in to the jar. You'll notice that there is no equivalent of getResourceAsStream() that offers an OutputStream.

Related

nodejs base64 parse returns a unexpected zip file

I have an api in which I generate an XLSX file with some data, and then transform it to base64 and return it to the client.
I'm having trouble transforming the XLSX to Base64, the function returns the string in base64, but when I check it with tools like base64guru or similar, it is converted to a zip file and the XLSX is completely lost.
I'm using the typical method to convert to base64, I don't have anything strange, it just transforms it into a zip and I don't know why.
Here is the parser code:
const path = `./some_path/${randomName}.xlsx`;
XLSX.writeFile(workbook, path); //<<-- the file is generated and i can open it with excel and works
fine.
const base64String = fs.readFileSync(path).toString('base64'); //this return the base64 zip file :S
Does anyone know why this happens and how can I solve it?
Here i put a base64 generated string:
UEsDBAoAAAAAAPOGalHWknwRWgEAAFoBAAARAAAAZG9jUHJvcHMvY29yZS54bWw8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJVVEYtOCIgc3RhbmRhbG9uZT0ieWVzIj8+DQo8Y3A6Y29yZVByb3BlcnRpZXMgeG1sbnM6Y3A9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9wYWNrYWdlLzIwMDYvbWV0YWRhdGEvY29yZS1wcm9wZXJ0aWVzIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOmRjdGVybXM9Imh0dHA6Ly9wdXJsLm9yZy9kYy90ZXJtcy8iIHhtbG5zOmRjbWl0eXBlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGU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25zaGlwIElkPSJySWQzIiBUeXBlPSJodHRwOi8vc2NoZW1hcy5vcGVueG1sZm9ybWF0cy5vcmcvb2ZmaWNlRG9jdW1lbnQvMjAwNi9yZWxhdGlvbnNoaXBzL3N0eWxlcyIgVGFyZ2V0PSJzdHlsZXMueG1sIi8+PC9SZWxhdGlvbnNoaXBzPlBLAQIUAAoAAAAAAPOGalHWknwRWgEAAFoBAAARAAAAAAAAAAAAAAAAAAAAAABkb2NQcm9wcy9jb3JlLnhtbFBLAQIUAAoAAAAAAPOGalGxLi/VMwIAADMCAAAQAAAAAAAAAAAAAAAAAIkBAABkb2NQcm9wcy9hcHAueG1sUEsBAhQACgAAAAAA84ZqUfwR/M3HBAAAxwQAABgAAAAAAAAAAAAAAAAA6gMAAHhsL3dvcmtzaGVldHMvc2hlZXQxLnhtbFBLAQIUAAoAAAAAAPOGalFHFBtxQwEAAEMBAAAPAAAAAAAAAAAAAAAAAOcIAAB4bC93b3JrYm9vay54bWxQSwECFAAKAAAAAADzhmpRMA+Ia94dAADeHQAAEwAAAAAAAAAAAAAAAABXCgAAeGwvdGhlbWUvdGhlbWUxLnhtbFBLAQIUAAoAAAAAAPOGalFV9ASUWgQAAFoEAAANAAAAAAAAAAAAAAAAAGYoAAB4bC9zdHlsZXMueG1sUEsBAhQACgAAAAAA84ZqUTbrlv2SBwAAkgcAABMAAAAAAAAAAAAAAAAA6ywAAFtDb250ZW50X1R5cGVzXS54bWxQSwECFAAKAAAAAADzhmpRSmoR+UwCAABMAgAACwAAAAAAAAAAAAAAAACuNAAAX3JlbHMvLnJlbHNQSwECFAAKAAAAAADzhmpR0D9k3S0CAAAtAgAAGgAAAAAAAAAAAAAAAAAjNwAAeGwvX3JlbHMvd29ya2Jvb2sueG1sLnJlbHNQSwUGAAAAAAkACQA+AgAAiDkAAAAA
There is nothing wrong here. You can rename the decoded Base64 file to .xlsx and open it with Excel.
XLSX is in fact a zip-file with a certain structure inside.
Office Open XML (also informally known as OOXML or Microsoft Open XML (MOX))[3] is a zipped, XML-based file format developed by Microsoft for representing spreadsheets, charts, presentations and word processing documents
(Source: https://en.wikipedia.org/wiki/Office_Open_XML)
The base64 website did it's best to identify the file format and found the first 4 bytes
50 4b 03 04 ("PK��")
which identifies it as a ZIP file.(originally PKZIP, starting with the initials of the creator)
If you keep the .zip extension, you can open it with any unzip tool or directly in the Windows Explorer to see the internal structure of it.
With a few lines JavaScript you can identify the OpenXML content type of the OpenXML/ZIP file:
var base64input = 'UEsDBAoAAAAAAPOGalHWknwRWgEAAFoBAAARAAAAZG9jUHJvcHMvY29yZS54bWw8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJVVEYtOCIgc3RhbmRhbG9uZT0ieWVzIj8+DQo8Y3A6Y29yZVByb3BlcnRpZXMgeG1sbnM6Y3A9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9wYWNrYWdlLzIwMDYvbWV0YWRhdGEvY29yZS1wcm9wZXJ0aWVzIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOmRjdGVybXM9Imh0dHA6Ly9wdXJsLm9yZy9kYy90ZXJtcy8iIHhtbG5zOmRjbWl0eXBlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIi8+UEsDBAoAAAAAAPOGalGxLi/VMwIAADMCAAAQAAAAZG9jUHJvcHMvYXBwLnhtbDw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz4NCjxQcm9wZXJ0aWVzIHhtbG5zPSJodHRwOi8vc2NoZW1hcy5vcGVueG1sZm9ybWF0cy5vcmcvb2ZmaWNlRG9jdW1lbnQvMjAwNi9leHRlbmRlZC1wcm9wZXJ0aWVzIiB4bWxuczp2dD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ACgAAAAAA84ZqUfwR/M3HBAAAxwQAABgAAAAAAAAAAAAAAAAA6gMAAHhsL3dvcmtzaGVldHMvc2hlZXQxLnhtbFBLAQIUAAoAAAAAAPOGalFHFBtxQwEAAEMBAAAPAAAAAAAAAAAAAAAAAOcIAAB4bC93b3JrYm9vay54bWxQSwECFAAKAAAAAADzhmpRMA+Ia94dAADeHQAAEwAAAAAAAAAAAAAAAABXCgAAeGwvdGhlbWUvdGhlbWUxLnhtbFBLAQIUAAoAAAAAAPOGalFV9ASUWgQAAFoEAAANAAAAAAAAAAAAAAAAAGYoAAB4bC9zdHlsZXMueG1sUEsBAhQACgAAAAAA84ZqUTbrlv2SBwAAkgcAABMAAAAAAAAAAAAAAAAA6ywAAFtDb250ZW50X1R5cGVzXS54bWxQSwECFAAKAAAAAADzhmpRSmoR+UwCAABMAgAACwAAAAAAAAAAAAAAAACuNAAAX3JlbHMvLnJlbHNQSwECFAAKAAAAAADzhmpR0D9k3S0CAAAtAgAAGgAAAAAAAAAAAAAAAAAjNwAAeGwvX3JlbHMvd29ya2Jvb2sueG1sLnJlbHNQSwUGAAAAAAkACQA+AgAAiDkAAAAA'
var buf = Buffer.from(base64input, 'base64');
console.log(buf)
const header = buf.toString()
if (header.indexOf(" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\"") > 0)
console.log("Excel XSLX")
else if (header.indexOf(" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\"") > 0)
console.log("Word DOCX")
else if (header.indexOf("ContentType=\"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml\"") > 0)
console.log("PowerPoint PPTX")
I can't guarantee that it will allways work. With the example from the question it works, but with a DOCX file on my PC it didn't. I'll update this answer as soon as I know more.

writefile-write-file-to-workspace Groovy Jenkins step looks to be corrupting size & content of Binary file

In course of uploading binary file with few attempts per file parameter uploaded file in Jenkins is missing & Fetching binary or zipped uploaded files in Jenkins - Windows cannot open the folder . The Compressed(zipped) Folder is invalid noticed, writeFile Groovy used as part of Jnekins pipeline is corrupting content of file along with its size - worried more from Binary file perspective.
Per the documentation, https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#writefile-write-file-to-workspace , it's mentioned to support base64 encoding for binary data for writing files, but looks like it's bug as written file is with wrong size (exceeds..) & corrupt, as one can't open zip or binary file as highlighted in post linked above.
writeFile: Write file to workspace Write the given content to a named
file in the current directory.
file Type: String text Type: String
encoding (optional) The target encoding for the file. If left blank,
the platform default encoding will be used. If the text is a
Base64-encoded string, the decoded binary data can be written to the
file by specifying "Base64" as the encoding. Type: String
Any work-around is present or is there a way to raise bug-fix request?
Here is line of code which looks to be causing problem from groovy Jenkins pipeline script
// Read contents and write to workspace
writeFile(file: filename, encoding: 'Base64', text: filedata.read().getBytes().encodeBase64().toString())

How do I check the size of a file in Node.js?

So, I have a file (jpg, tiff or pdf) which initially is represented as a base64-encoded string, which I create a buffer from.
Now I want to check the size of given file without writing it to filesystem first.
I am using Node v4.4.3 on Linux.
How could I go about doing this?
Use Buffer.byteLength function.

How to get the content from an uncompressed .docx file by using ifstream.open() and read() methods. office open xml, vc++

I'm trying to build a suffix tree from a .docx file.
So first I unzipped the .docx file and then again created a .docx file with out compressing it. I used ICSharpCode.SharpZipLib.Zip.ZipOutputStream.SetLevel(0) method. Here I used C#.
This uncompressed .docx files can be opened without any error.
For the next step I used vc++. By using ifstream.open ("uncompressed.docx", ios::binary ); method I tried to open the file and store the content in a char array by using ifstream.read ( (char *)T, MAX_LENGTH - 1 ) method. But I could not get the actual content of uncompressed.docx file. When I tried to print the content of the char array(T) it printed some formatting tags rather than printing the actual text content of the uncompressed.docx.
I could not figure out what is the actual file that ifstream.open() method opens.It is not the document.xml file.
Please tell me how to get the actual text content from the uncompressed.docx file using VC++.

resource files in Haaf's game engine

I'm working with a program that uses Haaf's game engine which uses resource files that are saved as a .nsf format. These files are actually just zip files with a folder hierarchy in them and a resources.nsr file which just has information about each file.
The resources.nsf file has folders and an .nsr file setup like this:
|_resource.nsf
|_images
||-some .png files
|_sounds
||-some sound files
|-resource.nsr
The format of the .nsr file is as follows:
;TEXTURES-------------------------------------
Texture background
{
filename = images\background.png
}
;---------------------------------------------
Texture a
{
filename = images\a.png
}
;---------------------------------------------
Texture b
{
filename = images\b.png
}
....more textures
;SPRITES--------------------------------------
Sprite backgroundSpr
{
texture = background
rect = 0, 0, 1024, 768
}
....more sprites
In the images folder I found a thumbs.db file, and when I opened it the first line had Mac OS X printed in it. I assume that the zip file originated on an OS X system.
I have tried zipping up a new resource file with 7zip and windows compression. The site for Haaf's game engine recommends using pkzip, but that costs money now so I cannot obtain a copy of it.
Is there a way I can repack my resource file and have it work under Windows 7 x64?
Winrar works if you compress it to a zip file, this will allow the game engine to use the resource files properly.

Resources