I'm trying to save a buffered image to a png file. I've used ImageIO.write(image, "png", file). When I run it I get "java.security.AccessControlException: access denied (java.io.FilePermission map delete)" I'm trying to save to map.png which is in the same folder as my applet.