This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes BlackBerry and the fly likes Send a file to server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » BlackBerry
Bookmark "Send a file to server" Watch "Send a file to server" New topic
Author

Send a file to server

Asheesh Nehra
Ranch Hand

Joined: Jun 25, 2009
Posts: 35
Hello

I am newbie to blackberry(BB).........i have have send data from BB application to server(say tomcat).
like (input form)
First Name....................
Last Name....................
Image........................(browse)( particularly how to send image to server )


How can i achieve this please help me out. Thanks in advance.
Regards
Carol Hamer
author
Greenhorn

Joined: Sep 17, 2010
Posts: 26
If it's just a form, you could potentially just create a web page and have people access the page from the BlackBerry's browser, without installing an app on the BlackBerry smartphone.

If it really needs to be a whole application (and the data transfer is just one of the features), then it's a bit complicated to explain in a single comment (though I guess from your other thread that you're already making progress). The BlackBerry JDK comes with sample code for making http connections. Also, I talked about making HTTP connections in Chapter 9 of my book (including sample code).


Learn BlackBerry Games Development
Asheesh Nehra
Ranch Hand

Joined: Jun 25, 2009
Posts: 35
Thank you Mr. Carol Hamer

In fact I have send two or more files from blackberry(bb) application to the server. I send a file from bb to the server successfully. I have achieved this by this code
//to load the image .

code to send the image

I am confused to send another ................how can i make distinction between two file by this method .

please help me out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Send a file to server
 
Similar Threads
Grid layout problem
How to store an image from a jsp page to Database
Binary data to Image File
How to make sense of my binary data
pass <bean:write> to a function