Hi,
Try downloading this file:
http://www.notepaedia.com/teste.zip
with IE8 it fails the first time. It says the site cannot be found.
All subsequent attempts with IE work as expected. Only the first attempt fails. Firefox works always.
This is what the code does:
DownloadStream handleRequest(String path) {
DownloadStream result = new DownloadStream(zipToDownload(path), "application/octet-stream", new File(path).getName() + ".zip");
result.setCacheTime(0);
return result;
}
static private InputStream zipToDownload(String path) {
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
ZipOutputStream out = new ZipOutputStream(bytes);
//Write the entries to out...
return new ByteArrayInputStream(bytes.toByteArray());
}
Any ideas?
Thanks, Klaus