Hi all,

oliver clement wrote:

I am using JSVGCanvas inside an Applet and I'm planning to
enable users to transcode the viewed document into a typical image format.
In its first version my applet was signed and users could save the transcoder results under their filesystem. However after discussing with my team, it turned out that it would be more "natural" not to sign the applet and to render the transcoder's
results in a new browser window. Any Idea of how I could do this (temporary files seem excluded) ?

Well this is mostly an Applet<->Browser communication issue. The one suggestion I have is that you could try Base64 encoding the image stream and storing it in an HTML IMG element using the 'data:' protocol URL. But I'm really not a browser guru so I don't know how widely this is supported, and I don't really know how you get your Applet to talk to the browser (I think this is called 'LiveConnect' where javascript in browser talks to Java in Applet but really I've never done anything with it).

Tonny Kohar wrote:

I do not know if my method is working or not. You could keep the image
file generated by transcoder into the buffer/stream (do not need temp
files) then just read the buffer back into Image object. Then just
display the Image object.

I think they want to do it in an HTML file (so the user can right-click and save the image). This is a good idea if they just want to display the rendered image.

Or maybe you could extends the transcoder to return the Image instead of
transcode into the file

There is one other option which would be for your client to talk to the server and have the server generate the temporary image file then have the browser show that. The client would probably have to send back the SVG to render of course.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to