06-24-2011 03:08 PM
With the new SDK release and File IO on PlayBook officially supported, I have question about this.
Can I download a file from server and save it to PlayBook using "blackberry.io.file.saveFile()"?
I have a webservice that will provide the file as a binary content and I'm thinking to use jQuery ajax to get the binary from the webservice. Is this possible?
06-24-2011 05:07 PM
There is actually a glitch that went up with the API documents showing that read/save were supported in PlayBook. These are not yet supported as we work though making Blob support work with the File API
We will be making these fixes to the API documents.
06-25-2011 06:09 AM
Please follow this thread http://supportforums.blackberry.com/t5/Web-and-Web
06-25-2011 04:33 PM - edited 06-25-2011 04:35 PM
Am I understanding this corectly? You're saying we cannot save to the PlayBook at all right now? I've been waiting for this latest version of the SDK for that exact purpose...
I need to save some base64 data to an image, and received an 'Error 1304' usering saveFile.
06-25-2011 04:41 PM
Yes, its not possible to save data to playbook with the existing API. Only a blobdata which is read from an existing file can be saved to another new file, which in a way is similar to copying a file. For more details please see the thread http://supportforums.blackberry.com/t5/Web-and-Web
06-25-2011 04:46 PM
06-25-2011 04:54 PM
Please check at SDK folder bbwp\ext. The extension blackberry.ui.dialog will be easier to understand. Follow the same pattern and you will surely end in good results
06-25-2011 07:20 PM
That's above my head.
Looked in to using html5 and 'window.requestFileSystem' to save files to with no luck wither. Looks like I'm out of luck.