Win a copy of Functional Reactive Programming this week in the Other Languages 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