[Seaside] Displaying an image from a ByteArray

Yar Hwee Boon hboon at motionobj.com
Sun Dec 12 05:50:37 CET 2004


I'm trying to display an image that has its contents store in a ByteArray.  
I create a class HBPicture that has this #width and #height defined along  
with

HBPicture>>asMIMEDocument
	^ MIMEDocument contentType: 'image/png' content: contents

When I create an instance of HBPicture and pass it to  
WAHtmlRenderer>>imageWithForm:, the image does not load and the loading  
process (of the browser) does not stop, seems its waiting for a response,  
anyone know what's wrong? Thanks.

-- 
Regards
HweeBoon
MotionObj


More information about the Seaside mailing list