Sorry, that should be i18n, not i18, and rset.getBytes, not rset.getAsBytes.

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


> 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);


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

Reply via email to