Re: How to convert BLOB to String.

2006-03-14 Thread Nathan Maves
directly into a string? Zsolt -Original Message- From: Gustavo Henrique Sberze Ribas [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 14, 2006 12:11 PM To: user-java@ibatis.apache.org Subject: RE: How to convert BLOB to String. Hello, iBATIS can fetch the BLOB as a stream of bytes. One

RE: How to convert BLOB to String.

2006-03-14 Thread Zsolt
Thank you Gustavo. Is it possible to configure ibatis to put the BLOB directly into a string? Zsolt >-Original Message- >From: Gustavo Henrique Sberze Ribas [mailto:[EMAIL PROTECTED] >Sent: Tuesday, March 14, 2006 12:11 PM >To: user-java@ibatis.apache.org >Subject: RE:

RE: How to convert BLOB to String.

2006-03-14 Thread Gustavo Henrique Sberze Ribas
Hello, iBATIS can fetch the BLOB as a stream of bytes. One way of doing what you want is to create get/setters using byte[] that store/read to/from a private String field, ie: public class MyBean implements Serializable{ private String myString; public void setStringAsByteArray(byte[] b)