permaculture playing cards
The moose likes Android 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
JavaRanch » Java Forums » Mobile » Android
Bookmark "Send a file to server" Watch "Send a file to server" New topic

Send a file to server

Asheesh Nehra
Ranch Hand

Joined: Jun 25, 2009
Posts: 35

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.
Carol Hamer

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 can i make distinction between two file by this method .

please help me out.
I agree. Here's the link:
subject: Send a file to server
jQuery in Action, 3rd edition