This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uploading image to Servlet using Http Connection

 
Alex Parvan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What are my options to do that ? I want to send an image from a mobile device (J2ME).

Can i just use request.getInputStream(); to read the bytes ? Or multipart/form-data ?

Thanks,
Alex
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to do this with a client web application (in a browser), then you should look into the File Upload package from Jakarta Commons: http://commons.apache.org/fileupload/
 
Nazmul Quader
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Parvan is talking about J2ME. Not mobile web. Any help ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic