Hi,<br><br> I have a little method that is supposed to display a picture.<br><br>Here is my code:<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
showImage <br> <br></blockquote><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"> | string stream |<br> self coverPictureName isNil<br>
ifFalse: [ string := self coverDirectory , self coverPictureName.<br> stream := FileStream fileNamed: string.<br> stream binary.<br> HandMorph attach: (World drawingClass withForm: <br>
(ImageReadWriter formFromStream: stream contents))]<br></blockquote><div><br> 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'<br>
<br>Is there a problem with this method or whit mine?<br><br>Is there any other possibility to get what I want to do?<br><br>Thank you<br></div>