[hunchentoot-devel] Displaying an image in the text content

Andrei Stebakov lispercat at gmail.com
Thu Feb 8 23:13:16 UTC 2007


Thank you, it works. Only the /path/to/image.jpg should always start with a
path to your lisp server (like "/hunchentoot/test") otherwise the handler
won't work. So, does it mean that if you have a number of images that you
want to display you need to create-static-file-dispatcher-and-handler for
each of them?

Thank you,
Andrew

On 2/8/07, Zach Beane <xach at xach.com> wrote:
>
> On Thu, Feb 08, 2007 at 05:45:01PM -0500, Andrei Stebakov wrote:
> > Going trough the test server code it's clear how to diplay an image
> based on
> > a static handler or sending a raw image stream to the client. But how
> can
> > show an image in context of a normal html page (surrounded by other text
> > tags like <div> <table> etc)?
>
> Add a handler for /path/to/image.jpg, and put <img
> src="/path/to/image.jpg"> in the HTML?
>
> Zach
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20070208/0cab53b5/attachment.html>


More information about the Tbnl-devel mailing list