By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,541 Members | 1,106 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,541 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a

"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

P: n/a

"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.