03-07-2012 04:22 PM
Im trying to unzip a file, using zip.js, i would like to know if there's a way to save the unzipped files to the playbook without user interaction.
What im receiving in each zip file is something like this.
where in a.html will be a <img src="b.jpg" />
03-13-2012 12:19 PM
A quick look at the zip.js demo page suggests it is using the blob file format
Have you considered trying the blackberry.io.file.saveFile() method (would be for WebWorks applications only - not the browser)?
03-13-2012 01:20 PM
Usually you'd put resources like images in their own folder: <img src='images/b.jpg' />
and extra .html pages can be put in the root folder of the project.
There's no real need to zip them, because the .bar and .cod file formats are in fact already a .zip files.
Or is this about resources fetched from remote servers?
Thought about packaging resource bundles for extra content?
03-13-2012 01:57 PM
03-13-2012 02:06 PM
Here they said the stringtoBlob, and blobtoString are'nt working, so no matter what you are trying to, you can't manipulate data, any solution?
03-14-2012 04:59 AM
> The data by example file.myextension wil be a zip file, so each time i open one of em i must unzip it,
> thats why they could'nt be into my .bar file
I still fail to see why you can't or don't want to put these resources (unzipped) in the .bar file. There's hardly any advantage in storage space and it takes more script code (which you already have problems with to get working)
03-14-2012 05:09 AM - edited 03-14-2012 08:30 AM
Because they are users files, the app should be just no more than editor.
Sorry the blackberry playbook autocorrelation is horrible