|
Re: Mason component to output image: msg#00175web.mason.user
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> |
|---|---|---|
| Previous by Date: | Re: Getting at content :o(: 00175, John Williams |
|---|---|
| Next by Date: | Re: e-smith / SME: 00175, Michael P. Soulier |
| Previous by Thread: | Re: Mason component to output imagei: 00175, David R. Baird |
| Next by Thread: | e-smith / SME: 00175, Kees Vonk |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |