Hi,<br><br><div class="gmail_quote">2010/3/24 Michael Delache <span dir="ltr">&lt;<a href="mailto:vladmanchev@gmail.com">vladmanchev@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br><br>  I tried to display a picture (located in my computer) in a web application using a &#39;html image&#39; block but it didn&#39;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? </blockquote>
<div><br></div><div>html image display an image that is available through an internet location. ie. the file must be served by a webserver like Apache.</div><div><br></div><div>Seaside (I guess this is what you use) cannot by default do that (serve static content). </div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">How could I get what I want?<br></blockquote><div><br></div><div>several options</div><div><br></div><div>
1)configure Kom so that it serves static content (Kom or Swazoo who are in squeak the web servers used in conjoontion with seaside)</div><div>2)put your file online wherever you want and then add the url to htm image</div>
<div>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)</div><div>4) use Apache to serve static content</div><div><br></div><div>solution 2 is probably the easier one.</div>
<div>Anyway, have a look there: <a href="http://book.seaside.st/book/in-action/serving-files">http://book.seaside.st/book/in-action/serving-files</a></div><div><br></div><div><br></div><div>hth,</div><div><br></div><div>Cédrick</div>
<div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>Thanks<br>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Cédrick <br>