Re: loss of data depending on security permissions
From: John Davison (nospamplease_at_cinci-solutions.com)
Date: 03/04/04
- Next message: vic: "Re: switch case statement"
- Previous message: Lorin Hochstein: "Exception in thread "main" java.lang.UnsatisfiedLinkError: isSetUID"
- In reply to: Christian Schott: "loss of data depending on security permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: vic: "Re: switch case statement"
- Previous message: Lorin Hochstein: "Exception in thread "main" java.lang.UnsatisfiedLinkError: isSetUID"
- In reply to: Christian Schott: "loss of data depending on security permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|