Browser specific problem
Browser specific problem
- Subject: Browser specific problem
- From: "Kranthi Sagar Borra" <email@hidden>
- Date: Thu, 22 Jan 2004 19:36:11 +0530
- Thread-topic: Browser specific problem
Hi,
I am doing th e following to download a file using http streamlining functionality in webobjects.
try
{
int bufferSize = downloadedFile.length() >= 0x0L ? 0x100000 : (int)downloadedFile.length();
aResponse.disableClientCaching();
aResponse.removeHeadersForKey("Cache-Control");
aResponse.removeHeadersForKey("pragma");
aResponse.setContentStream(new FileInputStream(downloadedFile), bufferSize, (int)downloadedFile.length());
aResponse.setHeader("application/octet-stream", "content-type");
if(fileName != null)
{
aResponse.setHeader("attachment;filename=\"" + fileName + "\"", "content-disposition");
aFileName = fileName;
}
}
catch(Exception ex)
{
ex.printStackTrace();
}
Now when I am using safari, its working fine.But when I user IE/camino browsers the file is getting downloadedd twice instead of once.Is there any solution for this.Thanks in advance.
Rregards
Kranthi.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.