[Seaside] Static Content
john at pinesoft.co.uk
Tue Apr 10 13:42:28 UTC 2007
thanks - works great with a stream, even for large (0.5mb+) files!:
| stream content |
stream _ StandardFileStream new open: '/path/to/logo.gif' forWrite:
content _ stream contents.
Philippe Marschall wrote:
> If you have Seaside 2.7 and your files are not too big you can use
> WAFileLibrary has a class comment
> WAFileLibraryDemo and WAFileLibraryExample are examples
> 2007/4/10, John Thornborrow <john at pinesoft.co.uk>:
>> Good day all,
>> I have been recently using Squeak and Seaside, to recreate a website
>> previously powered by PHP - all is going well, I am a soon to be
>> SmallTalk evangelist!
>> I have stumbled upon a small hurdle, and that is Static Content (e.g.
>> Images and 'attachments' such as documents/pdf's.)
>> Is there a a simplified method of serving these files, without the need
>> for proxying via Apache or other webserver application? My Google-fu is
>> weak today, so I have not been able to find any examples. If anyone
>> could provide a link or example I would be most appreciative!
>> Many thanks,
>> Pinesoft Computers are registered in England, Registered number:
>> 2914825. Registered office: 266-268 High Street, Waltham Cross,
>> Herts, EN8 7EA
>> This message has been scanned for viruses by BlackSpider MailControl
>> - www.blackspider.com
>> Seaside mailing list
>> Seaside at lists.squeakfoundation.org
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside