[Elhadi barkat]
> int imgSize = (int)blobObj.length();
> // Create byte[] data array to store picture data temporarily
> // before writing it to a file
> image = new byte[imgSize];
> // Retrieve the picture as a binary stream from the Blob object
> InputStream is = blobObj.getBinaryStream();
> // Store the binary stream from above into image byte[] array
> is.read(image);
not related, but in the interest of smaller/better code :)
byte[] image = blobObj.getBytes(1,blobObj.length());
I hate 1-based positioning, although I guess I can tolerate it here
--
James Manning <[EMAIL PROTECTED]>
GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7 9C8E A0BF B026 EEBB F6E4