[OT] Upload 2 images with one jdbc INSERT?

2003-11-07 Thread john-paul delaney
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

Re: [OT] Upload 2 images with one jdbc INSERT?

2003-11-07 Thread Christopher Schultz
j-p, Apologies if this is off-topic, I posted to the jdbc forum on sun with little response. I always try www.jguru.com -- I used to answer a lot of questions there. I should go back... I insert an image into a postgres db using the following code: URL urlImage =

Re: [OT] Upload 2 images with one jdbc INSERT?

2003-11-07 Thread john-paul delaney
Thanks for the advice(s) Chris... I ignorantly hadn't realized I could open more than one stream, using only one stream returned a negativearray exception (?), while the second stream appears to have worked nicely. And yes, as you guessed - I hadn't closed the streams and URLConnections.