[Seaside] serve jpg image files from form objects

Martin Schubert mtin79 at googlemail.com
Thu Jun 1 16:38:20 UTC 2006


hey,
again in this case i  think the #asMIMEDocument seems to be the  
bottleneck becaus Form looses its sense what type of image it was and  
the ByteArray generated via 'aForm bits asByteArray' is not working  
when i have following in the #renderContentOn: method :

html imageWithDocument: aForm bits asByteArray
         mimeType: 'image/jpeg'
         fileName: root name.


Am 01.06.2006 um 09:53 schrieb Michel Bany:

> goran at krampe.se a écrit :
>
>> do this:
>>
>> 	html image fileName: 'myimage.png'
>>
>> or:
>>
>> 	html image fileName: 'myimage.blurp' mimeType: 'blurp'
>>
>>
>
> The Seaside2.6b1 branch (that includes everything from 2.6a3) also  
> supports this :
>
> 	html image fileName: 'myimage.blurp' mimeType: 'blurp' document:  
> aDocument
>
> where the additional argument is anything that can understand  
> #asMIMEDocument
> (String, ByteArray, Form, CachedDocument, etc.).
>
>
>
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the Seaside mailing list