[Seaside] Displaying picture
Michael Delache
vladmanchev at gmail.com
Tue Mar 23 19:20:25 UTC 2010
Hi,
I have a little method that is supposed to display a picture.
Here is my code:
showImage
>
>
| string stream |
> self coverPictureName isNil
> ifFalse: [ string := self coverDirectory , self coverPictureName.
> stream := FileStream fileNamed: string.
> stream binary.
> HandMorph attach: (World drawingClass withForm:
> (ImageReadWriter formFromStream: stream contents))]
>
the problem is that 'stream' seems to be a ByteArray and when gave as an
argument to the 'understandsImageFormat' class method of 'JPEGReadWriter',
it (ByteArray) doesn't understand the messages 'reset' and 'next'
Is there a problem with this method or whit mine?
Is there any other possibility to get what I want to do?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100323/8cf6abdc/attachment.htm
More information about the seaside
mailing list