Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Display image file in browser

by friedo (Prior)
on Jul 15, 2008 at 20:35 UTC ( #697801=note: print w/ replies, xml ) Need Help??


in reply to Display image file in browser

You don't use a function in Perl to display an image file in a browser. If you want to display an image in a browser, you use HTML.

If the image in question must be dynamically generated by a CGI program, then point the src attribute from the img tag at the right program, and have that program output the correct content-type header so the browser knows it's getting an image.


Comment on Re: Display image file in browser
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://697801]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2015-07-06 00:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls