[Seaside] Integrating Images on a website. Don't want to use Apache or WAFileLibrary.

John Thornborrow john at pinesoft.co.uk
Thu Apr 24 11:13:42 UTC 2008

Correction (brackets):

  ^(FileStream fileNamed: 'examplefile.png') binary contents

John Thornborrow wrote:
> Regarding option 2, it does not need to bloat the image and answers
> option 3.
> ExampleFileLibrary>>examplefilePng
>   ^FileStream fileNamed: 'examplefile.png' binary contents
> Hope this helps,
> John
> Torsten Bergmann wrote:
>> Hi,
>> in general there are three ways:
>>  1. serve files using an external server/location (Apache)
>>  2. create a WAFileLibrary 
>>  3. let the Squeak webserver serve files from hard disk 
>> 1. is not good for portability, 2. bloats the image - so 3. may be your 
>> option to choose.
>> You can do this either with an WAExternalFileLibrary implementation as Holger already explained or by serving the files directly using a file serving module for KomHttpServer:
>> For an example either have a look at "Webserver-tbn.4.mcz" in "www.squeaksource.com/DeveloperWorkspace" or read http://www.shaffer-consulting.com/david/Seaside/GettingSoftware/index.html
>> Bye
>> Torsten

John Thornborrow

This email is from Pinesoft Limited. Its contents are confidential to the intended recipient(s) at the email address(es) to which it has been addressed. It may not be disclosed to or used by anyone other than the addressee(s), nor may it be copied in anyway. If received in error, please contact the sender, then delete it from your system. Although this email and attachments are believed to be free of virus, or any other defect which might affect any computer or IT system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by Pinesoft for any loss or damage arising in any way from receipt or use thereof. *******************************************************************************************************************************************

Pinesoft Limited are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA

More information about the seaside mailing list