logo       

Mason component to output image: msg#00170

web.mason.user

Subject: Mason component to output image

I want a mason component to output a jpeg. This is what i've tried:
in httpd.conf:
 
 AddType image/jpeg .mjpg
 
in test.mjpg
<%perl>

open(FILE,"/robot.jpg");
while(<FILE>){
 print $_;
}
close FILE;
</%perl>
 
Running the component just spits back the code within test.mjpg.


 
Any ideas?
Adam
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise