[Seaside] serve jpg image files from form objects

Bany, Michel mbany at cincom.com
Thu Jun 1 16:48:07 UTC 2006


> asMIMEDocument
> 	| aStream |
> 	aStream _ (RWBinaryOrTextStream on: '').
> 	JPEGReadWriter putForm: (self asFormOfDepth: self depth)
onStream:  aStream.
> 	^MIMEDocument contentType: 'image/jpeg' content: aStream
contents
 
I think you should use JPEGReadWriter2 rather than JPEGReadWriter.


More information about the Seaside mailing list