i am using
JSP in my application,
I want to store the image in the database
(in the BLOB datatype column).
For this client will select an image file from his
hard disk .
To select the file I am using file field tag in html i.e
<input type="file" name="blobFieldIns" >
when client will select the specific file using this tag
they will get a path like this
for e.g c:\example\link.jpg
so actually i planned to read the bytes of the file
using FileInputStream in the form of byte [ ] and store
this byte [] array in the database column.
( But this won't work b'coz file is selected is on client side).
so now i am planning to extract information from Image file
(i.e no of bytes)in the JavaScript.
so I want to Know how to do it in javaScript.
Does any one have the sample code???(if yes please send me).
please help me out,
regards,
Ashish.