I would like to display images stored as attachment in a Couchdb database on my website.
I can retrieve the attachment from Couchdb, but I am not sure how to display the image received on my website. Here is what I receive when I get the attachment on my if what I am receiving make sense.
Response received from Couchdb:
00:00:26.928 [INFO] response = �PNG
IHDR ��a gAMA��7 �� tEXtSoftwareAdobe ImageReadyq�e< �IDAT8�ݑ�N Q �y�y - �� ��4�@�"������b*`��Ŧ kK=���$:H �(�����)�� ���&�e.��]/V��^��V�/ U�� C ���� C�� �g ��f�� ,�o^`�6�`y� 8�0#'n4B�� }�� !Z"R �� E�<Y������4 W� ��1t�+ �
���( +I<; ��a���hy@������ V~���S!p���J �J � �`Y7�دz��a����K�
�C`�p�@�< {� �i w0��# �� �� � �V �7 ��`3z�}֡.���_ ny�dM$i۶ V֨ �7� �� � ��J�A�N�;DW��xr fO_"~ �I7
z>j1� ET�a* �<� ��x.� ;��kj t˓#b �M7�V��Q T��1U ��4���� �Y��[�Ki�g � џf�0�,��-� � �{a��P�a�K!�XԠ}��i�Wל� ��&� M m��z%ӗ;����=`Z��Uu�I$�_�/��.�p%IEND�B`�
I have tried to create an Image with this data and add the Image widget to an HtmlPanel but it didn't worked. I also tried to setUrl to an existing image with the data received from Couchdb but it also failed.
Does anyone know if I need to process the data before trying to display it on my website???
Thanks
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:
Post a Comment