Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Applet/Browser communication

Thread view: 
bjorn - 16 Feb 2007 10:04 GMT
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?
Michael Rauscher - 16 Feb 2007 10:59 GMT
> 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
Andrew Thompson - 16 Feb 2007 12:03 GMT
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.