logo       

Re: Mason component to output image: msg#00175

web.mason.user

Subject: Re: Mason component to output image

On Tue, 22 Jul 2003, Adam Roth wrote:

> I want a mason component to output a jpeg. This is what i've tried:
>
> in httpd.conf:
>
> AddType image/jpeg .mjpg
>
> Running the component just spits back the code within
> test.mjpg.

This indicates that mason is not handling the file. You need to configure
apache to send these request to mason.

<LocationMatch "\.mjpg$">
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</LocationMatch>

Also, it would be safer to put your code in an <%init> section, and return
at the end, to make sure mason doesn't add any newlines to the output.

~ John Williams






-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise