• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Send a file to server

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
My pie came with a little toothpic holding up this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic