[Seaside] serve jpg image files from form objects
Martin Schubert
martin.schubert at informatik.uni-ulm.de
Wed May 31 19:30:25 UTC 2006
hello out there,
allthough i browsed throught the archives i couldn`t find the answer
to my problem.
i want to serve a jpg-file which is stored in a Form object.
so i do : aForm _ (Form fromFileNamed: 'wave.jpg')
then i tried the following inside the #renderContentOn: method :
html imageWithDocument: aForm bits asByteArray
mimeType: 'image/jpeg'
fileName: root name,'Picture', '.jpg'.
this doesn`t work, and when i am acceptin the following, seaside
seems to convert the jpg file to gif or wracks up the picture file
somehow :
html imageWithDocument: aForm
mimeType: 'image/jpeg'
fileName: root name,'Picture', '.jpg'.
anybodys having some experience with this issue?
thanks for help!
martin
More information about the Seaside
mailing list