i want to create a project that accepts the image and save it into a database and retrieve
1.i created a table in mysql database with datatypes varchar and blob.
2.to save the file into a blob datatype the file is to be converted into a inputstream
3.i created a html page with two inputs text for imagename and file for image
4.i created a servlet to get the inputs
5. iam getting the image name but i am not getting the image. i googled for it and got that the file can be retrieved in the form servletinput stream
- my problem is how to convert the servlet input stream into the input stream and send to the database
- aslo how can i retreive the image back from the database