I want to insert a blob retrieved from a form field (with type='file') into a database. How can I convert the data returned by request.getParameter() to a BLOB type?

John Zukowski

Given a set of bytes, see How do I upload SQL3 BLOB & CLOB data to a database? for how to insert it into a database that supports BLOBs.

Joe Sam Shirah adds:

To upload file data from a browser to a servlet, see: How do I upload a file to my servlet?.

Jorge Jordão, Eduardo Estefano, and Trapix Smith also contributed to this answer.
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact