简体   繁体   中英

How to download image using Blackberry Webworks?

I want to download an image from a server and save it to the SD card. I searched many sites but didn't find any solution. For reading and writing the file, I am using the following File Reader & Writer code and it is working well. But I don't know how to save the file using Phonegap. Can anyone please help me with this?

Thanks in advance.

To save the file using PhoneGap, there is the FileTransfer API which provides a method to download a file from a server to the device file system/SD card.

Using WebWorks, there is the File API which also offers a method ( saveFile() ) to save a file to the SD card.

Michelle Mendoza
Developer Relations
Research In Motion
@BlackBerryDev

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM