Ciao,


I have some problem relative to the web request for the image.

For now the request

  <img alt="Pizzaflash.jpg" src="/pier/about/pizzaflash.jpg">

don't work.

I change the:

NAExternalFile contents  method to:

 | contents | 
 (FileDirectory on: self filepath )readOnlyFileNamed: self filepath do: [ :stream |
 stream binary. 
 contents := stream contents ]. 
^ contents

Now it work fine.

Anyone ( if this change are considered right ) can update the relative package ?


But my thoughts:



My thoughts, my goal  is that the image is manage directly by the Lighttpd or Apache web server 

not read by Gemstone environment and response with:

PRFileView 

respondUsing: aResponse
| file |
file := self context structure file.
aResponse
binary;
cacheForever;
contentType: file mimetype seasideMimeType;
headerAt: 'Content-Disposition' put: 'inline; filename="' , file filename , '"';
nextPutAll:  file contents;
respond

remain live.

Any considerations ?

Dario