Applet/Browser communication

B

bjorn

I have an applet that displays data in graph-form depending on user
input. If the user wants to save this data a BufferedImage is created
and the user can save this to file. This requires the applet to be
signed to get access to the users filesystem.
However I would like to be able to display this image in a new browser
window without saving it and thus eliminating the need to sign the
applet.
So I wonder if there is any possibility to send the image(which only
exists in memory) to a browser window?
 
M

Michael Rauscher

bjorn said:
So I wonder if there is any possibility to send the image(which only
exists in memory) to a browser window?
None that I know of.

You could send the image back to the server and open a URL to it - but
this would be really stupid. First, you'd transfer the image two times
over the network. Second, the server has to process the uploaded file
(it must be stored somewhere) and to handle two requests...

So: sign the applet.

Bye
Michael
 
A

Andrew Thompson

I have an applet that displays data in graph-form depending on user
input. If the user wants to save this data a BufferedImage is created
and the user can save this to file. This requires the applet to be
signed to get access to the users filesystem.

...or that you launch the applet using web start,
and use the JNLP API to access the file system.
E.G. <http://www.physci.org/jws/#fs>

Andrew T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top