Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: SWF::Builder, printing the swf file, rather than saving it

by olus (Curate)
on Jan 16, 2008 at 10:58 UTC ( #662649=note: print w/replies, xml ) Need Help??


in reply to [SOLVED] SWF::Builder, printing the swf file, rather than saving it

Sending an object directly into the browser implies sending the appropriate MIME headers so that the browser recognizes the type of information to display.
For an swf the mime-type is application/x-shockwave-flash.

update: Sorry, not what was asked
  • Comment on Re: SWF::Builder, printing the swf file, rather than saving it

Replies are listed 'Best First'.
Re^2: SWF::Builder, printing the swf file, rather than saving it
by reasonablekeith (Deacon) on Jan 16, 2008 at 11:13 UTC
    Yep, I realise this (and you have inferred correctly that I intend to serve the built object as an http response), but that doesn't answer my question.

    I'll be able to print the header okay, it's the binary data which forms the built swf object that I can't see how to get hold of (other than saving it to disk with a temp name, reading it, printing the contents in the response and then deleting the file, ug!)

    ---
    my name's not Keith, and I'm not reasonable.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-10-07 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (30 votes). Check out past polls.

    Notices?