http://qs1969.pair.com?node_id=662649


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.