Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^7: Showing Word document in browser

by blazar (Canon)
on Jan 12, 2006 at 16:31 UTC ( [id://522736]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Showing Word document in browser
in thread Showing Word document in browser

As I already said, I'm far from being an expert in this field of application. But apart that

  • (I'd switch to a more recent perl if possible and) use warnings instead of -w;
  • use a lexical filehandle and the 3-args (with "<:raw") form of open,

at first sight the only thing that I can guess is that

Content-Type: application/msword;

doesn't play well with a gif file: indeed the header is recognized as a GIF89a as printed in the error message. Did you try with an actual word doc? How 'bout a plain application/octet-stream if that doesn't work either? I for one would be happier to just download it rather than to directly open it even if I were on a Windows box...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://522736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-20 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found