| Author |
Convert String to Blob
|
Kathy Navarro
Greenhorn
Joined: Oct 04, 2004
Posts: 8
|
|
Hello, I am trying to write to a database a Blob value from a String. I use the getParameter method to retrieve the string from the JSP pages, but then the database expects it as a blob. Is there any way to make to conversion from String to Blob or should this be done on the part of the SQLServer? Thanks!
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26192
|
|
Kathy, You can use the statement.setBinaryStream() method to convert your String to a Blob.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: Convert String to Blob
|
|
|