Hi all

I have a Column "Image" as LONG BYTE .

And this Column was filled with HEX-Code (former jpg.images) .
Now I want to recreate this Images, with usage of jdbc.
So the statements are :

byte[] data = new byte[0];
String sqlStmt = new String("select image from voti102 where ID = 1")
if( rs.next() )
          data = rs.getBytes("image");

rs.close();
java.io.FileOutputStream fos = new FileOutputStream("test.jpg");
fos.write(data);
fos.close();

But when I want to look up the images, I can't open them. And the Source- Text of the Images is still the same HEX Code, like in the Database ?

What might be wrong ?

I use the newest Version of sapdb database and the actual sapdb-jdbc driver

Best regards,
Danny


-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ _______________________________________________ sapdb.general mailing list [EMAIL PROTECTED] http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to