Thursday, 15 January 2015

Uploading a picture in filesystem with JSP/servlet to MYSQL -


I have some difficulty doing this work and I can use some help:

Im trying to upload a photo from a file folder in a MYSQL DB using a JSP / Java servlet from my file system

I have a file in a picture folder, I know that I have to read the file , Convert it to byte, get the outputstream, but I had very little luck (and I have not posted any code because my attempt has become debris of the train). File is in the Outstream stream, I know how can SQL statement form a single referred to as a blob? Parameter, but I can not overcome it.

Any help would be greatly appreciated.

No comments:

Post a Comment