Reputation: 28342
Is there a solution, similar to img
data:image/gif;base64...
, that allows to embed an swf movie in a HTML page without having to create a new swf file and link it in the src
attribute?
Upvotes: 1
Views: 856
Reputation: 449385
It might be possible in Firefox using the data
attribute as the embed's src
: Try it out.
It will definitely not work in Internet Explorer <= 8, because data:
URIs are allowed only for image data there. Not sure about IE 9, some limits have been lifted in the Beta.
Opera will also fail in most cases, because the maximum size of data:
URIs is limited to 4 kilobytes there.
I am not aware of a cross-browser way to do this that does not require a separate resource.
Upvotes: 2