ITmajor has asked for the wisdom of the Perl Monks concerning the following question:
When I tried to open the file with this:
$q->header("image/png\n\n")
open(FILE, "name_of_image";
while (<FILE>);
print "$_\n";
I get a bunch of symbols and gibberish. I thought that maybe there is another function to display image files vs. text files. Also, since I want to output both text & images, I wanted to know if I can use 2 different header types in my script or should I create a separate script for text & another for images.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Display image file in browser
by friedo (Prior) on Jul 15, 2008 at 20:35 UTC | |
|
Re: Display image file in browser
by Joost (Canon) on Jul 15, 2008 at 20:38 UTC | |
|
Re: Display image file in browser
by alexm (Chaplain) on Jul 15, 2008 at 21:42 UTC | |
by ITmajor (Beadle) on Jul 15, 2008 at 22:03 UTC | |
by alexm (Chaplain) on Jul 15, 2008 at 22:21 UTC | |
by Joost (Canon) on Jul 15, 2008 at 22:15 UTC |