logo       

Re: File downloads etc: msg#00124

lang.smalltalk.squeak.seaside

Subject: Re: File downloads etc

Am 10.01.2006 um 09:13 schrieb goran@xxxxxxxxx:

Hi guys!

Ok, this has surely been discussed a *hundred* times - but I just
started digging into Seaside for real so forgive me. And yes, I did
search a bit with Google first. :)

The question is: How do people serve files with Seaside? Especially
static files like images?

This is the file serving code from SqueakSource:

WAGenericResponse
document: (self storage loadMonticello: version from: aProject)
mimeType: 'application/monticello'


loadMonticello: aVersion from: aProject
| stream |
stream _ (self projectDirectoryFor: aProject)
readOnlyFileNamed: aVersion fileName.
^[ stream binary; contents ]
ensure: [ stream close ].


I'd really like to have a stream-based solution here, too ...

- Bert -


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise