If I have the SVG in a memory stream, How can I display the SVG directly
from the memory ? can I do it in javascript or do i require xpcom ?
any example would be great.
Many Thanks for your help in advance,
Kind Regards,
Natarajan.
> If I have the SVG in a memory stream, How can I display the SVG directly
> from the memory ? can I do it in javascript or do i require xpcom ?
When you mean in memory do you mean in the client's memory? Is it a
client-server architecture? Do you intend to use standard Firefox or
do you intend something like XULRunner (embedding Gecko, Firefox's
rendering engine in a stand-alone application)? Are you creating an
XML string representing SVG and just want to display it?
> any example would be great.
In order to help you, one needs to better understand what is your
intention [1]... ;-)
Also, if you intend a cross-browser solution (as opposed to a Gecko-
specific), then SVG Developers [2] would be a better mailing list.
> Many Thanks for your help in advance,
Hope this helps,
Helder
[1] http://www.catb.org/~esr/faqs/smart-questions.html#goal
[2] http://tech.groups.yahoo.com/group/svg-developers/
Many Thanks for your time,
Kind Regards,
Natarajan.
Your best bet is a protocol implementation that does what you want.
Note that you could also use a data: URI, but since so much in SVG
depends on references to fragments of various documents you might be
better off with a protocol that supports relative urls and the like.
-Boris