SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: gibberish and symbols appears when downloading a file in Firefox

  1. #1
    SitePoint Zealot Bruce Lee's Avatar
    Join Date
    Jan 2005
    Location
    Singapore
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    gibberish and symbols appears when downloading a file in Firefox

    user expireince gibberish and symbols appears when downloading a file in Firefox (see the attachment). this happens once in a while. Does anyone know why this happens and are there any ways to prevent this?

    Also is there any way to check if the client has successfully downloaded the file? in my application, i only allow 1 download per user so i should make sure the client successfully downloaded the file

    anyways to handle it in @ "// Read the data in buffer" part or someting???

    ----------------
    // Verify that the client is connected.
    if (Response.IsClientConnected)
    {
    // Read the data in buffer.
    length = iStream.Read(buffer, 0, 10000);

    // Write the data to the current output stream.
    Response.OutputStream.Write(buffer, 0, length);

    ----------------
    Attached Images
    Last edited by Bruce Lee; Jan 18, 2008 at 01:01. Reason: more info
    Happy Coding!!!
    Bruce Lee.

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,424
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    How big is the file? Where do you get 1000000 from? Where do you set the content-type header?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •