Hello List...
Apologies if this is off-topic, I posted to the jdbc forum on sun with little response.
I insert an image into a postgres db using the following code:
URL urlImage = getServletContext().getResource(
"/images/" + imageFilename);
URLConnection urlImageConn = urlImage.openConnection();
int urlImageLength = urlImageConn.getContentLength();
InputStream is = urlImage.openStream();
... and using a preparedStatement,
pStmt.setBinaryStream(1, is, urlImageLength);
However I'd like to insert a second image into the same db record but don't know if
it's possible to use the same inputstream.
Thanks for any suggestions,
/j-p.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]