Forum Moderators: open

Message Too Old, No Replies

Data URI Scheme

How to use it to display a .swf data inline

         

coolclu3

7:42 am on Nov 29, 2007 (gmt 0)

10+ Year Member



Hi all,
I have binary data of a .swf file in base64 encoding.
I want to use data URI scheme to display it inline. I have seen images working with data URI scheme, but not with flash <object> tag.

How to accomplish this?

tedster

7:24 pm on Nov 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think you'll have challenges for a couple reasons:

1. No version of IE support a data URI scheme, not even IE7

2. Even with browsers that do support a data URI scheme, like Opera, there is a limit of 4kb. That might work for a small image, but won't your .swf files be larger than that?

coolclu3

3:57 am on Dec 3, 2007 (gmt 0)

10+ Year Member



Thanks tedster,
I found out a solution. That is to give up :)
Moreover,URI data is *probably* only supported by HTML tags, Flash player wouldn't know how to handle the data inside <object> or <embed> tags.