Your overcomplicating the problem. If in-fact your swfInfo.php
is outputting the swf file's bytes with a content type of application/x-shockwave-flash
all you need to do is set the data
attribute of your <object>
tag to that URL.
<object type="application/x-shockwave-flash" data="api/swfInfo.php?id=7">
<param /> <!-- parameters -->
</object>
I would also recommend a content-length
declaration to ensure your connection closes properly when loading files this way.
header('Content-length: ' . mb_strlen($swf['FlashBlob']));
header('Connection: close');