View Single Post
  #1 (permalink)  
Old October 29th, 2004, 07:57 AM
Pallav Pallav is offline
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default uploading Images..

Hi all,
I want to upload images to a mysql db as blob data type..

The image is uploaded by the following steps..

1.An html form (say upload_image.jsp)
 using <input type="file"> tag.
This form is used to select the image to be uploaded.
This form submits to a servlet say "UploadServlet.java".

2.The UploadServlet reads the post data
which is sent by upload_image.jsp and inserts the required
image data into the database.

How do i restrict the height,width and size of the image that is
being uploaded??

Could anybody please help me out.

Thanks.
Pallav
Reply With Quote