I tried the first solution explained in Perl CGI display image to browser from file topic.
Everything works perfect... except for the fact that, instead of displaying the image in the browser, it displays a lot of strange characters (something similar as when I open the image in notepad.
This is the code I am using:
#perl CGI code lines before
select(STDOUT); $| = 1; #unbuffer STDOUT
print "Content-type: image/jgp\n\n";
open (IMAGE, '<', '/absolute_route_to_image/logo.jpg');
print <IMAGE>;
close IMAGE;
#rest of HTML code, displayed in a print statement in perl
Any help is appreciated. Thank you!!