[Seaside] serve jpg image files from form objects

Michel Bany m.bany at wanadoo.fr
Thu Jun 1 07:53:50 UTC 2006


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.).






More information about the Seaside mailing list