Compression during a download

4 posts, 0 answers
  1. Andrew
    Andrew avatar
    70 posts
    Member since:
    Oct 2008

    Posted 12 Oct 2009 Link to this post

    Hi,

    Using the example code for a download facility with the FileExplorer I note that you turn off httpCompression. Is this necessary, or can one try to take advantage of compression?

    Andrew
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 15 Oct 2009 Link to this post

    Hello Andrew,

    The code bellow is used in order to avoid compression, because in the example the content sent to the browser is of type image/gif. Note that RadCompression compresses only specific content types and the type in the demo is not included. That is why I recommend you to exclude the handler from the RadCompression.
    [RadCompressionSettings(HttpCompression = CompressionType.None)] // Disable RadCompression for this page ;

    Please do not hesitate to contact us if you have any further questions.

    Regards,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Andrew
    Andrew avatar
    70 posts
    Member since:
    Oct 2008

    Posted 15 Oct 2009 Link to this post

    Hi,

    Thanks for the response - the impliciton of your reply is that it might not matter? If only selected content (to do with AJAX) is compressed, then presumably anything sent as a downlaod woudl be sent "as is".

    I ask this becasue it may be helpful to compress "on the fly" to speed up a download without requring the user at the other end to then decompress. But I suppose this more a general issue to do with browser capabilities and not specific to telerk.

    Thanks
  4. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 21 Oct 2009 Link to this post

    Hi Andrew,

    Yes, it doesn't matter whether this code will be used or not, when the sent content type  is different than the supported ContentTypes by the RadCompression.


    Sincerely yours,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top