• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Browser specific problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: generated copyright message
  • Next by Date: Re: Memory Management
  • Previous by thread: Re: WOLips woa start on server
  • Next by thread: Re: Memory Management
  • Index(es):
    • Date
    • Thread