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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
Davidf65
Posts: 151
Registered: ‎07-20-2010

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

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
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
Please use plain text.
Trusted Contributor
Davidf65
Posts: 151
Registered: ‎07-20-2010

Re: uploading a file using https

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

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
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
Please use plain text.
Trusted Contributor
Davidf65
Posts: 151
Registered: ‎07-20-2010

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

Please use plain text.
Developer
peter_strange
Posts: 17,718
Registered: ‎07-14-2008

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. 

Please use plain text.