It's not a secret anymore!*
The moose likes Java Micro Edition and the fly likes Uploading image to Servlet using Http Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Uploading image to Servlet using Http Connection" Watch "Uploading image to Servlet using Http Connection" New topic
Author

Uploading image to Servlet using Http Connection

Alex Parvan
Ranch Hand

Joined: Dec 10, 2009
Posts: 115
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


"Quoting yourself is stupid" - Me
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
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

Joined: Mar 12, 2010
Posts: 1
I think Parvan is talking about J2ME. Not mobile web. Any help ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Uploading image to Servlet using Http Connection
 
Similar Threads
How To Write Some Text in a Horizontal Rule?
automatic display of the java list on mouseover an image
looking for a creative way to get a string from file.xml
thumbnail in jsp
problem with load image file