[Seaside] Serving pictures from the image
Jens Pall
jens at axonspace.com
Thu Jan 25 18:04:16 UTC 2007
Bany, Michel wrote:
>
>> Regarding the files, I am looking for a way to serve binary
>> data from directly within the image itself, not using files
>> on the external filesystem. I'm planning on using Magma as
>> the persistent repository for everything and don't want to
>> rely on stuff out on the filesystem, hence I need a way to
>> load and serve my images completely from within squeak.
>
> You may want something like this
>
> (html anchor)
> document: aByteArray
> mimeType: 'application/msword'
> fileName: 'report.doc'
>
Yes, this looks promising.
But how do I load the document from disk into aByteArray? I think I can
do this using a web form, but I want to be able to load it directly from
the filesystem (used in a batch load later).
JP
More information about the Seaside
mailing list