[Seaside] Static Content
John Thornborrow
john at pinesoft.co.uk
Tue Apr 10 13:42:28 UTC 2007
Hi,
thanks - works great with a stream, even for large (0.5mb+) files!:
logoGif
| stream content |
stream _ StandardFileStream new open: '/path/to/logo.gif' forWrite:
false.
content _ stream contents.
stream close.
^contents
Philippe Marschall wrote:
> Hi
>
> If you have Seaside 2.7 and your files are not too big you can use
> WAFileLibrary.
>
> WAFileLibrary has a class comment
> WAFileLibraryDemo and WAFileLibraryExample are examples
>
> Cheers
> Philippe
>
> 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,
>>
>> John.
>> www.pinesoft.co.uk
>>
>>
>> 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
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
>
More information about the Seaside
mailing list