[Newbies] displaying picture from local path

Cédrick Béler cdrick65 at gmail.com
Wed Mar 24 17:50:14 UTC 2010


2010/3/24 Michael Delache <vladmanchev at gmail.com>

> Hi,
>   I tried to display a picture (located in my computer) in a web
> application using a 'html image' block but it didn't worked. I tried the
> same code with a picture located on a web server and it worked. What is the
> difference between the two situations?

html image display an image that is available through an internet location.
ie. the file must be served by a webserver like Apache.

Seaside (I guess this is what you use) cannot by default do that (serve
static content).

> How could I get what I want?

several options

1)configure Kom so that it serves static content (Kom or Swazoo who are in
squeak the web servers used in conjoontion with seaside)
2)put your file online wherever you want and then add the url to htm image
3)you can load an image into a method so that seaside can serve it but this
is putting some load on the smalltalk image (FileLibrary lib)
4) use Apache to serve static content

solution 2 is probably the easier one.
Anyway, have a look there:



> Thanks
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20100324/4dc9817e/attachment.htm

More information about the Beginners mailing list