Is there a magic trick to serving graphic files via comanche? Do I need to do something with the ImageReaderWriter? Like:
http://lists.squeakfoundation.org/pipermail/seaside/2004-September/003640.ht...
Just to be clear here is the directory structure: public_html/ index.html "has <img src="logo.gif"/> " logo.gif
The page is served without the graphic.
Thanks, Wilkes
The following is an abstract from http://coweb.cc.gatech.edu/cs2340/2913
Getting Commanche to display an image was a bit of a challenge. Don't assume it knows where your data files are stored, because it doesn't, plus that would be of no help anyway since it can't directly display an image sitting in your squeak directory. The way to display an image, is to first create a form from a file sitting in your squeak directory. We had an image 'squeaken.gif' in ours, so we created an instance variable 'form' as such:
form := Form fromFileNamed: 'squeaken.gif'.
When I mentioned before that we could emulate url prefixes with this module, this is where it came into use. Wherever you want to display your image, the url prefix needs to be changed to something that can be recognized later as containing an image, although you can change it to anything as long as you know that that prefix represents an image. If that sounds a bit confusing, just observe this html code:
<img src="', (self urlPattern copyReplaceAll: '' with: '/squeaken.gif'), '">
Hope this helps...
-----Original Message----- From: squeak-dev-bounces@lists.squeakfoundation.org [mailto:squeak-dev-bounces@lists.squeakfoundation.org] On Behalf Of Wilkes Joiner Sent: Wednesday, December 21, 2005 6:17 PM To: The general-purpose Squeak developers list; The Squeak Enterprise Aubergines Server - general discussion. Subject: Serving static graphics with comanche
Is there a magic trick to serving graphic files via comanche? Do I need to do something with the ImageReaderWriter? Like:
http://lists.squeakfoundation.org/pipermail/seaside/2004-September/003640.ht ml
Just to be clear here is the directory structure: public_html/ index.html "has <img src="logo.gif"/> " logo.gif
The page is served without the graphic.
Thanks, Wilkes
Wilkes:
Is there a magic trick to serving graphic files via comanche? Do I need to do something with the ImageReaderWriter?
Maybe, Depends of if you wish manipulate your original graphics with Squeak. See a living example and code at:
http://200-122-104-133.cab.prima.net.ar:8084/ (using HttpView from Goran and manipulating picture with Squeak)
And:
http://200-122-104-133.cab.prima.net.ar:8086/ (using ModDir from Comanche)
The machine runs from aproximate 09:00 to 23:00 GMT
Hope this helps you
Edgar
___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar
Wilkes -
What image version are you using? I ran into a similar problem on 3.8 and had to patch ModFile (see attached changeset).
Regards, Brent
Hi!
Brent Vukmer brent.vukmer@gmail.com wrote:
Wilkes -
What image version are you using? I ran into a similar problem on 3.8 and had to patch ModFile (see attached changeset).
This was probably fixed (if it was the filestream related thing) in the *latest* KomHttpServer on SM.
And you can serve image files directly without using the Form class, but I don't have time to give an example right now.
regards, Göran
On 12/22/05, goran@krampe.se goran@krampe.se wrote:
This was probably fixed (if it was the filestream related thing) in the *latest* KomHttpServer on SM.
And you can serve image files directly without using the Form class, but I don't have time to give an example right now.
regards, Göran
It works now. I was running 7.0.2 and upgrading to 7.0.3 resolved the issue.
Thanks to everyone for the help!
- Wilkes
squeak-dev@lists.squeakfoundation.org