jpg is corruptes after upload

Last post 02-09-2010, 7:41 AM by kriki. 4 replies.
Sort Posts: Previous Next
  •  02-08-2010, 1:30 PM 58592

    jpg is corruptes after upload

    Hi,
     
    After uploading a jpg there are some pixel missing at the end of the picture. I´m using the event FileUploaded to copy the file to another destination.
    I could post some examples if you want to.
     
    Server : IIS 6
    Client: IE7 / IE8 with https
     
    Best regards
     
  •  02-08-2010, 1:31 PM 58593 in reply to 58592

    Re: jpg is corruptes after upload

    kriki:
    Hi,
     
    After uploading a jpg there are some pixel missing at the end of the picture. I´m using the event FileUploaded to copy the file to another destination.
    I could post some examples if you want to.
     
    Server : IIS 6
    Client: IE7 / IE8 with https
     
    Best regards
     
     
    Which version of Ajax Uploader are you using?
     
    Can you reproduce the problem in the following example?
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-08-2010, 1:36 PM 58597 in reply to 58593

    Re: jpg is corruptes after upload

    Hi,
     
    I cannot reproduce this behavior on your example application.
     
    I´m using the current version  AjaxUploader 3.0 20100202
     
    Best regards
  •  02-08-2010, 2:10 PM 58598 in reply to 58593

    Re: jpg is corruptes after upload

    Hi,
     
    on one of our servers the upload is working, but I can reproduce the descripted behavior on 2 servers. All IIS 6. What could be the differences of the configuration?
     
    Best regards
  •  02-09-2010, 7:41 AM 58609 in reply to 58593

    Re: jpg is corruptes after upload

    Hi,
     
    I´m sorry, The upload did work. The download of the files was corrupted.  I streamed the file with follwing code:
    // Write the data to the current output stream.
    Response.OutputStream.Write(buffer, 0, length);
    // Flush the data to the HTML output.
    Response.Flush();
    Response.Close();
     
    This is only working, if the compression within IIS is disabled. If it is enabled the last bytes of the download is missing. Following changes helped:
     
    Response.OutputStream.Write(buffer, 0, length);
    // Flush the data to the HTML output.
    Response.Flush();
    Response.End();
     
    or
     
    Response.TransmitFile(fl.FullName);
    Response.End();
     
    Best regards
     
View as RSS news feed in XML