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

Web and WebWorks Development

Reply
Developer
jeroen13
Posts: 39
Registered: ‎02-07-2012
My Device: Blackberry curve 8520 // Blackberry playbook 64GB

how to download files in webworks ?

Hi, I have a question. How can I download; open/save files in BB PB webworks ? Its an EXISTING website so I can change te codes . Is there any special 'feature id / permission' to get that POP-UP message ?????

Thanks in advance !
Jeroen
Developer
Hithredin
Posts: 404
Registered: ‎06-03-2010
My Device: Z10 Red

Re: how to download files in webworks ?

Everything you need is here to access blackberry file system (it needs special feature):

https://developer.blackberry.com/html5/apis/blackberry.io.dir.html

 

The dl, can be done with Ajax

Developer
jeroen13
Posts: 39
Registered: ‎02-07-2012
My Device: Blackberry curve 8520 // Blackberry playbook 64GB

Re: how to download files in webworks ?

Does this allows me to get that 'download pop-up' or not ? Because it is an EXISTING website, i cant change any html codes / stuff like that !

It can be done with Ajax .. How ?
Contributor
bbkeeper
Posts: 41
Registered: ‎04-27-2010
My Device: Z10

Re: how to download files in webworks ?

I guess you need o check this out:

 

https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Tablet/UploadDownload

---
More applications/games here: http://appworld.blackberry.com/webstore/vendor/14299/
louis.keeper@gmail.com
haitt@viethop.net
http://blackberryvietnam.net
http://viethop.com
Developer
jeroen13
Posts: 39
Registered: ‎02-07-2012
My Device: Blackberry curve 8520 // Blackberry playbook 64GB

Re: how to download files in webworks ?

Thanks for that link ! I'm not sure if it will work, the example code shows that there has to be some coding done, but anyway I'll give it a try
Contributor
bbkeeper
Posts: 41
Registered: ‎04-27-2010
My Device: Z10

Re: how to download files in webworks ?

Hmmm... If you are developing a WebWorks application, then there are couple of ways to download files from a website and my earlier reply is one among but a bit advanced.

A simpliest way is invoke browser to handle the url to the file you want to download.

---
More applications/games here: http://appworld.blackberry.com/webstore/vendor/14299/
louis.keeper@gmail.com
haitt@viethop.net
http://blackberryvietnam.net
http://viethop.com
Developer
jeroen13
Posts: 39
Registered: ‎02-07-2012
My Device: Blackberry curve 8520 // Blackberry playbook 64GB

Re: how to download files in webworks ?

how can i invoke that ?

i managed to get the source code !
so which script is the best to use?
Developer
scrid2000
Posts: 142
Registered: ‎07-27-2011
My Device: Red Z10, 32GB PlayBook, Numerous Android/WP8/FirefoxOS/Other devices

Re: how to download files in webworks ?

Invoking the browser is actually pretty easy to do :smileyhappy:
Instructions are at https://bdsc.webapps.blackberry.com/html5/apis/blackberry.invoke.html
-----------------------------------------------------------------------------------------



Contributor
dbotelho
Posts: 21
Registered: ‎12-03-2010
My Device: Blackberry Bold 9700

Re: how to download files in webworks ?

I've created a Javascript Extension that allows you to download a file directly from a webworks app (OS5+). If your interested download it from github: https://github.com/dbotelho/blackberry.io.filetransfer

 

Best regards,

Daniel Botelho

Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: how to download files in webworks ?

hey i think this will help you,
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Download-Image-From-URL-Link-And... 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.