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
New Developer
Posts: 65
Registered: ‎08-07-2013
My Device: Blackberry Torch 9800
My Carrier: Mobile App Development
Accepted Solution

How to upload the image from device using javascript

Hi All,

 

   I have developed the web application.In that i want to upload the image from the folder in my blackberry device.if possible please the give the code for me.Thanks in Advance..

 

Regards,

 

Marimuthu_P

BlackBerry Development Advisor
Posts: 635
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: How to upload the image from device using javascript

Hello,

 

Is this for BlackBerry10? The fileTransfer API will handle this for you. https://developer.blackberry.com/html5/apis/blackberry.io.filetransfer.html

 

New Developer
Posts: 65
Registered: ‎08-07-2013
My Device: Blackberry Torch 9800
My Carrier: Mobile App Development

Re: How to upload the image from device using javascript

Hi chadtatro
I have developed web application for Blackberry Torch 9800.so please help me to done this...Thanks in advance..

With Regards,
Marimuthu_P
BlackBerry Development Advisor
Posts: 635
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: How to upload the image from device using javascript

I've done this a long time ago with PhoneGap and their FileTransfer API.

 

I believe it uses XHR - Here's a great article on how to do multiple things with XHR and HTML5: http://www.html5rocks.com/en/tutorials/file/xhr2/