Herlani,

Please send messages to the listserv as generally you'll get more faster
responses.

The message_body field is binary because messages can be 8-bit.  If you want
to cast it to a String and suffer possibly i18 or other problems, then you
can do that using standard Java mappings from byte[] to String....

//Get the message body via JDBC
byte[] messageBody = rset.getAsBytes("message_body");
//Force fit it into a String
String notQuiteTheMessageBody = new String(messageBody);

Serge Knystautas
Loki Technologies - Unstoppable Websites
http://www.lokitech.com/
----- Original Message -----
From: "HERLANI JUNIOR" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 10:00 AM
Subject: HELP!!! JAMES WITH DATABASE


Hi Serge,

My name is Herlani Junior, I'm a Brazilian Java Developer and I've be trying
to create a mail server to make users email on the server.

I done everything to connect and store the messages on my SQL Server DB, and
it's working perfect.

My question is: How can I read and transform in ASCII the content of
message_body field.

I know it's a binary field, but to read with the James classes are a
exhaustive work.

Thank you for your attention,

HERLANI JUNIOR


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to