Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Send a file to server

 
Asheesh Nehra
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Asheesh Nehra
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic