AccessControlException converting an Image to a JPEG
<p>I've been having a problem trying to convert an image into a JPEG.  I keep getting an error that says access denied under FilePermission.  Is this because of how my files are set up on my computer, or something else?  Here is the code - </p>

<pre><code> BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB);   
 Graphics g = image.getGraphics();   
 g.drawString("Hello World!!!", 10, 20);   
 try {    
   ImageIO.write(image, "jpg", new File("c:/CustomImage.jpg"));   
 } catch (IOException e) {    
  e.printStackTrace();   
</code></pre>

<p>Thanks in advance!</p>

<p>javascript squl squl-server</p>
