Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Contributor
Posts: 28
Registered: ‎12-01-2010
My Device: Not Specified

Download Zip Files

Hi,

 

I am trying to find a solution which allow the user to download the zip file on the Playbook and then use that. I am basically Java programmer and i didn't find any such kind of API with current Adobe Air based SDK.


Kindly let me know if there is any API.

 

 

Regards,

Sachin Deorah


Regards,
Sachin Deorah
Highlighted
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Download Zip Files

Which aspect do you need help with?

 

Downloading the file?

 

Unpacking it?

 

Or possibly modifying it (you don't say if that's required).

 

Searching for "actionscript zip" and similar should give you answers to some of that.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Download Zip Files

The OS would need to have unzip installed which is probably does since it is Unix.  You would need to manage this from within an application (AIR for now).  There are zip libraries for AIR too.

 

Dont know what happens if the browser pointed to a zip file.  Browser would need to have some kind of unpack extension.

Contributor
Posts: 28
Registered: ‎12-01-2010
My Device: Not Specified

Re: Download Zip Files

I am looking for the API That Allowed it to download from a secured server and save within the App So later allow to unzip it and use it.


Regards,
Sachin Deorah
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Download Zip Files

You can use the standard URLLoader and URLRequest calls to obtain remote data.  From there, you can use the File classes to serialize to disk.  These have nothing to do with a "zip" file, they are used for any data blobs on remote server.  Once in the file, you can use calls to manage the contents of the zip file.

 

 

Contributor
Posts: 28
Registered: ‎12-01-2010
My Device: Not Specified

Re: Download Zip Files

Can you suggest/have any sample that allow to a secured connection and allow to download & save the data in the zip format.


Regards,
Sachin Deorah
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Download Zip Files

All the tools/API can be found here:

 

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html

 

I personally dont have an example on hand.  It is probably a dozen lines of code to do this.  Do searches on "Adobe Flex URLLoader" to grab the file and do searches on "Adobe AIR File" to store the file.  If you get stuck on that, please post a specific question.

Contributor
Posts: 28
Registered: ‎12-01-2010
My Device: Not Specified

Re: Download Zip Files

Is it possible with the Web SDk as well? Is there any similar api that allow to download and save file within the application?


Regards,
Sachin Deorah
Contributor
Posts: 28
Registered: ‎12-01-2010
My Device: Not Specified

Re: Download Zip Files

Hi,

 

The Playbook sdk i had was an earlier version so i suppose there was some issues with the filedownload url with secure connections. I am not sure about it.. So i downloads the new sdk and try to install it but fail to install it.

 

I am facing to install the Playbook sdk (BlackBerryTabletSDK-Air-Installer-0.9.3-Win-201101191348) on my windows7 machine.

 

When i run it, the Install Anywhere screen comes and asks..

 

Please select any other location to extract the installer to: 

choose:

 

when i choose any location it won't accept and ask to choose again & again.

 

Kindly do the needful.

 

 

 


Regards,
Sachin Deorah
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Download Zip Files

What is the path of the folder that you are choosing that it does not like?

Are you admin?