Help coderanch get a
new server
by contributing to the fundraiser

Jeroen De Schutter

Greenhorn
+ Follow
since Sep 21, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jeroen De Schutter

Well, id did sign the applet. I was able to write a (temporary) file to the disk of the client machine but when I tried to upload the file using Apache HttpClient, i did get an AccessControlException.



This is an excerpt of my code

14 years ago
Hi there,

I'm bumping this topic because I encountered exactly the same security issue as described in the first post of this topic. I am also developping an applet which enables to upload image files from a local machine to a Struts application.

I don't quite understand why I should change the permissions in the policy files. When I am going to deploy this applet to our users, do they have to change their policy files on their local machines too ? Is there no other solution ?
14 years ago
Executing the clearRect() method seems to be the solution. Thanks a lot !
14 years ago
I am afraid in don't quite understand how imaging in Java works ...
I am storing thumbnails of image files in a database. The thumbnails are always in JPEG format. When i want to store images with transparency (GIFs or PNGs) the "background color" of the alpha channel is always rendered black in the JPEG. I'd like it to become white, but I have no idea how.

I have already tried to set the background color of the Graphics2D object to white, but without visble results.

This is my code


Please note that my app runs on OC4J 10.1.2, so i'm limited to JDK 1.4
14 years ago