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

Java Development

Reply
Trusted Contributor
Posts: 151
Registered: ‎07-20-2010
My Device: Not Specified

uploading a file using https

hey guys, I want to upload files to an http server. Could anyone give me some links as to how this could be done? Thanks.

 

David

Developer
Posts: 16,677
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: uploading a file using https

depends on your server, usually you open a httpconnection with POST and write the data.
----------------------------------------------------------
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.
@SimonHain on twitter
Trusted Contributor
Posts: 151
Registered: ‎07-20-2010
My Device: Not Specified

Re: uploading a file using https

Thanks Simon, is it httpsconnection? the class i.e.

Developer
Posts: 16,677
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: uploading a file using https

yes, if you want to use https you can simply use http://www.blackberry.com/developers/docs/7.1.0api/javax/microedition/io/HttpsConnection.html
----------------------------------------------------------
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.
@SimonHain on twitter
Trusted Contributor
Posts: 151
Registered: ‎07-20-2010
My Device: Not Specified

Re: uploading a file using https

thanks, I wrote a very simple app to open a connection to a server. I have logging enabled in the application. While connecting, I'm getting a java.io.IOException: APN is not specified. What does this mean?

 

David

Developer
Posts: 19,628
Registered: ‎07-14-2008
My Device: Not Specified

Re: uploading a file using https

Review this Post for some links that will help you understand this:

http://supportforums.blackberry.com/t5/Java-Development/Basic-HTTP-Get-or-POST-data/m-p/1987021#M211...

 

Alternatively, type network in the Search box and look through the articles you will find.

 

Come back to us if these do not clarify your problem.