This is a migrated thread and some comments may be shown as answers.

Compression during a download

3 Answers 52 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 12 Oct 2009, 08:11 PM
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

3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 15 Oct 2009, 02:27 PM
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.
0
Andrew
Top achievements
Rank 1
answered on 15 Oct 2009, 02:50 PM
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
0
Fiko
Telerik team
answered on 21 Oct 2009, 07:32 AM
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.
Tags
FileExplorer
Asked by
Andrew
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or