Java - url timing out
<p>I am trying to download images off  website... it works great locally... but when the applet is run via web browser.. it gets cut off. For example, it downloads the images great but around 460-500... the image downloading suddenly stop.</p>

<p>Here's what I'm using:</p>

<pre><code>                for (int i = 0; i &lt; NUM_TILES; i++) {

                        try {
                System.out.println("Downloading tile " + i + " of "+NUM_TILES);
                File outputFileLocation = new File (System.getenv("APPDATA") + "\\.mystik\\tiles\\t"+i+".png");             
                String imgURL="line_tile/t"+i+".png";
                URL urlItem = new URL(imgURL);
                Image imageBR = ImageIO.read(urlItem);
                BufferedImage cpimg=(BufferedImage) imageBR;
                ImageIO.write(cpimg, "png", outputFileLocation);
                        } catch (MalformedURLException e1) {
                            e1.printStackTrace();
                        } catch (IOException ex) {
                            ex.printStackTrace();
                        }
                }
                System.out.println("Tiles downloaded!"); 
</code></pre>

<p>Why is it cutting off?</p>
