Subject | Re: BLOB Data Type - Tomcat (Java) |
---|---|
Author | llafranc78 |
Post date | 2002-07-31T15:30:14Z |
How do you retrieve the data from the ResultSet?
Try using:
byte[] textb = rset.getBytes(col);//get blob data
String text = textb!=null ? new String(textb) : "";//create String
This works for me.
Ciao
Luca
Try using:
byte[] textb = rset.getBytes(col);//get blob data
String text = textb!=null ? new String(textb) : "";//create String
This works for me.
Ciao
Luca
--- In Firebird-Java@y..., benjohn villedo <benjohnpv@y...> wrote:
> hello once more to the community,
>
> Good Day!!!
>
> there seems to be some probs on displaying BLOB
> fields(supposed to be MEMO) with subtype Text on the
> web coz instead of showing the real content of the
> BLOB field which is supposed to be plain text it
> rather shows a letter combination strings something
> like this: [B@a6684f
>
> here are more details of my setup
> 1. Firebird 1.0 DB on Red Hat Linux 7.3
> 2. DB driver is JCA-JDBC
> 3. Tomcat 4.0 for the JSP container
> 4. J2SDK 1.4
>
> has anyone encountered the same problem?? any fixes
> around?? hope to hear from anyone :-)
>
> pal,
> benjohn
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com