(home | about | stats)

Seaside FAQ: Displaying An Image That Was Stored As Bytes

Send WAHtmlRendered>>imageWithForm:, passing an object that understands

#asMIMEDocument
#height
#width

For eg. #asMIMEDocument can be implemented as

asMIMEDocument
    ^ MIMEDocument contentType: 'image/png' content: aByteArray

Note that some browsers (at least on windows - IE 6, Opera 7.54, Firefox 1.0) displays the image with its original size if the width and height attributes are not set.

motionobj.com. This is a pwyky site.