Matt Fair <matt(at)netasol(dot)com> writes:
> I have been playing around with storing images with setBinaryStream
> and getBinaryStream for a couple of days now, but I am continually
> running into a problem. I don't know if I am getting the data in the
> right format or not, but I am not able to get my image from the
> I have a client/server environment and when I get the image back from
> the database that is done on the server. So I do not want to write
> the InputStream as a file, instead as an array of bytes which are sent
> back to the client.
> I recive no errors when putting the image into the database and
> getting the image out of the database, where I get my error is when I
> try to generate the image from the array of bytes.
Did you create the database with the -E UNICODE option? If not, I
think you might find that the data is being stored as 7 bit ascii.
Caught me out too. :-)
Example Systems Ltd.
The views expressed in this email may not be those
of Example Systems Ltd unless explicitly stated.
In response to
pgsql-jdbc by date
|Next:||From: Nick Fankhauser||Date: 2001-09-27 13:26:04|
|Subject: Re: Re. conection error|
|Previous:||From: Russ McBride||Date: 2001-09-26 22:29:10|
|Subject: Re. conection error|