in reply to Printing inline images

 $q->h1("<img src='$pic'>"),

img src expects an URL. You are printing the picture binary data instead.

What you need there is to print a link to another script, that will then "print" the picture with a "Content-type: image/gif" header.

Replies are listed 'Best First'.
Re: Re: Printing inline images
by satanklawz (Beadle) on Jul 03, 2003 at 01:32 UTC
    Maybe I'm going about this the wrong way... I have a camera server (soon to be more) on a 10.xxx.xxx.xxx IP, and this box with a routable IP and also a 10.xxx.xxx.xxx IP. What I would like to do, after user credentials are passed, have something like http://server/?cameraip=10.50.1.1 and then the streaming images, provided by a java script on the camera server, to appear on the outside users machine without them having to edit their internet client to use a proxy server. I know this can be done, I've seen it with public proxy servers. Am I going about solving this the right way?