Re: loss of data depending on security permissions

From: John Davison (nospamplease_at_cinci-solutions.com)
Date: 03/04/04


Date: Thu, 4 Mar 2004 11:56:09 -0500


"Christian Schott" <cschott1@gmx.net> wrote in message
news:b8a03bf8.0403040257.37f60dda@posting.google.com...
> Hallo Java Programmer People.
>
> Hopefully that is the right Place for asking that Question, otherwise
> i apologize for wasting your time.
>
> I load a Bitmap (filename.bmp) in an Applet from a the Webserver that
> hosts the Applet.
>
> BufferedImage bi = ImageIO.read(url);
>
> Unfortunately some Data seems to be lost on its way.
> If I Read *.bmp Images it seems that some Rows of the Bitmap are not
> fully loaded, they are partly set to Black.
> If I Read JPEG Images instead the dataloss has the effect that the
> images are a little wishy-washy.
>
> In the Netbeans IDE everything works fine if i use Debug mode.
> The same if i grant all permissions in the java.policy file.

You don't need extra security permissions to load a URL from the server
hosting the applet.

Are you sure that "data is lost of the way"? Can you verify that? Could it
be the way you're displaying the Image? Or could it be your ASP script
sending the image? Perhaps it's not sending the correct header information,
such as the size and dimensions of the image.

Suggestions:
Use a sniffer to verify URL transactions: compare these transactions to one
made by a web browser and see if there is any difference.
Save the downloaded image to a file and do a binary compare. Download the
image through a web browser and compare it to your original.



Relevant Pages

  • Re: IIS Slow with little load problem
    ... Tracing on the SQL Server ... Can't you load up a local test HTML page to get the ... Applet running -- in which case, you are dealing with a local filesystem ... > IIS will likely cache access to those class files such that subsequent ...
    (microsoft.public.inetserver.iis)
  • PicoBlaze and (leon) grlib CAN2B core / spartan3E starter kit
    ... clk: in std_logic; ... -- 'lcd_drive' is used to differentiate between LCD and StrataFLASH ... load s0,00 ... compare sa, 01 ...
    (comp.arch.fpga)
  • Re: Problem opening serialized file via Open command associated with file type
    ... to the DDE command message and got a error dialog that the file couldn't be ... am, and compare ... what I see on a successful load to what I see on a failing load. ... These will allow you to get into the debugger. ...
    (microsoft.public.vc.mfc)
  • Site crashes on Empty Applet..????
    ... customized applet I built a year ago that scrolls news items in an applet ... it takes folks 10 sec to 5 minutes to load the ... News items will continually scroll from ... not load for 5 minutes on either browser (of course, ...
    (comp.lang.java.help)
  • Re: Trying to block Intel GMA driver on the desktop.
    ... Go to Start/Run/Regedit and navigate to: ... This tweak is useful for uncluttering your Control Panel and removing unused ... Add a key named don't load. ... You will use one String value for each control panel applet you want ...
    (microsoft.public.windowsxp.general)