|
Re: serving dynamic binary files: msg#00169web.mason.user
Michael Alan Dorman <mdorman@xxxxxxxxxx> wrote: > Jonathan Lang <dataweaver42@xxxxxxxxx> writes: > > So far, I have successfully echoed a couple of HTML documents, a text > > document, and a JPEG graphical image; when I tried echoing back a ZIP > > file, I got its contents on the screen as if it was a text document. > > Why is this? > > Given that it worked for other binary files, I would wonder whether > your Apache config doesn't have a mime-type assignment for the .zip, > and thus sends out a content type of text/plain or text/html. I was explicitly setting the content-type of the downloading file to match the content-type that I got from the uploading file. ===== Jonathan "Dataweaver" Lang __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- 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: | Getting at content :o(: 00169, Gareth Kirwan |
|---|---|
| Next by Date: | Mason component to output image: 00169, Adam Roth |
| Previous by Thread: | Re: serving dynamic binary filesi: 00169, Michael Alan Dorman |
| Next by Thread: | Re: serving dynamic binary files: 00169, John Williams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |