I
Ike
I have an MS Word document, as a BLOB in a database.
byte [] jack = ..//an MS WORD Document, read into a byte array
//When I retrieve it from the DB, as a byte [], and write it to disk, the
file is fine.
//However, if I convert the byte array, to string, then back to byte array,
//it will now be unreadable from from Word if I write it to disk
String tempstring=new String(jack);
jack=tempstring.getBytes();
Can anyone tell me why? I thought these last two lines were entirely
reciprocal? Thanks, Ike
byte [] jack = ..//an MS WORD Document, read into a byte array
//When I retrieve it from the DB, as a byte [], and write it to disk, the
file is fine.
//However, if I convert the byte array, to string, then back to byte array,
//it will now be unreadable from from Word if I write it to disk
String tempstring=new String(jack);
jack=tempstring.getBytes();
Can anyone tell me why? I thought these last two lines were entirely
reciprocal? Thanks, Ike