469,328 Members | 1,324 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,328 developers. It's quick & easy.

How to upload an image using a file browser from a basic client?

Good morning.

I would like to allow a user to browse his local file system, choose an
image (probably .jpeg) file, and upload it to the server (using a servlet) -
the
same functionality that online datiing agencies use to let people save their
photograph with their profiles. (My application is an online Want Ads.)

I feel that this must be possible within a minimal client (without a JVM)
using nothing more than HTML and JavaScript, but I'll be damned if I can
find how.

Would one of you more experienced Java people mind pointing me in the
right direction.

Thank you,
Ron.



Jul 17 '05 #1
3 10740
On the JavaScript, Murry provided the following solution:
http://www.jguru.com/faq/view.jsp?EID=160
"Ron Brennan" <rb******@magma.ca> wrote in message
news:aJ********************@magma.ca...
Good morning.

I would like to allow a user to browse his local file system, choose an
image (probably .jpeg) file, and upload it to the server (using a servlet) - the
same functionality that online datiing agencies use to let people save their photograph with their profiles. (My application is an online Want Ads.)

I feel that this must be possible within a minimal client (without a JVM)
using nothing more than HTML and JavaScript, but I'll be damned if I can
find how.

Would one of you more experienced Java people mind pointing me in the
right direction.

Thank you,
Ron.


Jul 17 '05 #2

"Ron Brennan" <rb******@magma.ca> wrote in message
news:rp********************@magma.ca...
On the JavaScript, Murry provided the following solution:
http://www.jguru.com/faq/view.jsp?EID=160


MurrAy ;-)

I'd recommend using the Commons Multipart Upload package
http://jakarta.apache.org/commons/fileupload/

If you're using Struts it's even easier :-)
Jul 17 '05 #3

"Murray" <pa***@SPAMoffSPAMMER.optusSP4Mnet.com.au> wrote in message
news:40***********************@news.optusnet.com.a u...

"Ron Brennan" <rb******@magma.ca> wrote in message
news:rp********************@magma.ca...
On the JavaScript, Murry provided the following solution:
http://www.jguru.com/faq/view.jsp?EID=160
MurrAy ;-)

I'd recommend using the Commons Multipart Upload package
http://jakarta.apache.org/commons/fileupload/

If you're using Struts it's even easier :-)


Got it; thanks again!

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by dave | last post: by
2 posts views Thread by Gary \(Girish\) | last post: by
5 posts views Thread by bob garbados | last post: by
3 posts views Thread by Pitcairnia | last post: by
9 posts views Thread by Steve Poe | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.