For Programmers: Free Programming Magazines  


Home > Archive > Java Help > March 2006 > Upload Images in JSP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Upload Images in JSP
lynch_susan

2006-03-30, 7:04 pm

Newbie,

I have to create a jsp page where i can upload some gif images to a
server location. How can i do that?

Thanks.

jcsnippets.atspace.com

2006-03-30, 7:05 pm

"lynch_susan" <lynch_susan@yahoo.ie> wrote in message
news:1143740471.337163.107080@v46g2000cwv.googlegroups.com...
> Newbie,
>
> I have to create a jsp page where i can upload some gif images to a
> server location. How can i do that?


Create a jsp page where you can choose the file. Then let the jsp post the
data to a servlet which handles the upload of the selected file.

I've had a quick look on Google for "upload servlet" and found this... It
might be very interesting -
http://www.jspwiki.org/wiki/MakingAnUploadServlet

Best regards,

JC
--
http://jcsnippets.atspace.com/
a collection of source code, tips and tricks


Alex Hunsley

2006-03-31, 7:03 pm

lynch_susan wrote:
> Newbie,
>
> I have to create a jsp page where i can upload some gif images to a
> server location. How can i do that?


Find out who has already invented that particular wheel and use their code!
In this case, the useful com.oreilly.servlet package comes to the rescue.

http://servlets.com/cos/

Frances

2006-03-31, 7:03 pm

Alex Hunsley wrote:
> lynch_susan wrote:
>
>
>
> Find out who has already invented that particular wheel and use their code!
> In this case, the useful com.oreilly.servlet package comes to the rescue.
>
> http://servlets.com/cos/


I use a Jakarta-Commons package, works pretty well..
http://jakarta.apache.org/commons/fileupload/

good luck,
Frances

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com