• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

upload images

how can i upload an image file to the server,
can you show me the code, thanks a lot
0
khanhlb
Asked:
khanhlb
  • 3
2 Solutions
 
TimYatesCommented:
Download the commons FileUpload library bean from http://jakarta.apache.org/commons/fileupload

There is a full source code example which comes with it...
0
 
TimYatesCommented:
Actually...the instructions on how to use it are here:

http://jakarta.apache.org/commons/fileupload/using.html
0
 
javazoomCommented:
You could also try UploadBean. It includes JSP samples to upload any files in folder or database :
http://www.javazoom.net/jzservlets/uploadbean/uploadbean.html
0
 
TimYatesCommented:
javazoom, can you help with this over here:

http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_21182627.html

(assuming you are the javazoom who wrote the uploadbean) :-)

He's having troubles writing an uploaded file (using the uploadbean) to a database

Tim
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now