Re: blobs in a client/server environment

Поиск
Список
Период
Сортировка
От Matt Fair
Тема Re: blobs in a client/server environment
Дата
Msg-id 3BB34460.3010502@netasol.com
обсуждение исходный текст
Ответ на blobs in a client/server environment  (Matt Fair <matt@netasol.com>)
Список pgsql-jdbc
Does anyone know if it is nessesary to have objects stored into the
database encoded as unicode that you had to compile the database with
the following opions:
--enable-unicode-conversion
--enable-multibyte

Thanks,
Matt

Matt Fair wrote:

> Hello,
> I did set the  encoding to UNICODE and it still does not show the blob
> image.
> My error from the JIMI library is the following:
>
> Error getting remote image: Cannot find encoder for type: png
> com.sun.jimi.core.JimiException: Cannot find encoder for type: png
>        at com.sun.jimi.core.JimiWriter.<init>(JimiWriter.java:51)
>        at com.sun.jimi.core.Jimi.putImage(Jimi.java:670)
>        at org.opensimpx.client.gui.ClientGUI.setupGUI(ClientGUI.java:218)
>        at org.opensimpx.client.gui.ClientGUI.<init>(ClientGUI.java:148)
>        at org.opensimpx.client.gui.ClientGUI.main(ClientGUI.java:421)
>        at org.opensimpx.client.login.Login.startClient(Login.java:535)
>        at org.opensimpx.client.login.Login.main(Login.java:340)
>
>
> So it does read the stream as a png.  I don't think this is a JIMI
> library error, since I have created many images with the jimi library,
> and it is very easy to use.  It must be something that I missed.
>
> I will look at it again and see what else I can do with the database.
>
> Any ideas?
>
> Thank you,
> Matt
> Pete Jewell wrote:
>
>> Matt Fair <matt@netasol.com> writes:
>>
>>> Hello,
>>> 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
>>> database.
>>> 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. :-)
>>
>> HTH
>>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>




В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Matt Fair
Дата:
Сообщение: Re: blobs in a client/server environment
Следующее
От: Barry Lind
Дата:
Сообщение: Re: Help: OutOfMemoryError