Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Displaying SVG from a memory stream

36 views
Skip to first unread message

Natarajan Thanikachalam

unread,
Aug 3, 2009, 3:17:29 PM8/3/09
to
Hi there,

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.

HelderMagalhaes

unread,
Aug 4, 2009, 5:41:02 AM8/4/09
to
Hi 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/

Natarajan Thanikachalam

unread,
Aug 4, 2009, 3:31:21 PM8/4/09
to
>> 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?
>
I am writing a XULRunner desktop application. I intend to store the SVG
images in a sqlite database and then read them and display directly,
instead of saving on the disk and then trying to display it.

Many Thanks for your time,

Kind Regards,

Natarajan.

Boris Zbarsky

unread,
Aug 4, 2009, 3:39:42 PM8/4/09
to
Natarajan Thanikachalam wrote:
> I am writing a XULRunner desktop application. I intend to store the SVG
> images in a sqlite database and then read them and display directly,
> instead of saving on the disk and then trying to display it.

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

Natarajan Thanikachalam

unread,
Aug 4, 2009, 3:50:49 PM8/4/09
to
Any Pointers to help me in this direction, would be a help.
Kind Regards,
Natarajan.
0 new messages