File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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