michielpost.nl

AgFx and GZIP support

26-03-2012

Morten Nielsen created a great solution for adding GZIP support for your http requests in a Windows Phone application.
http://www.sharpgis.net/post/2011/08/28/GZIP-Compressed-Web-Requests-in-WP7-Take-2.aspx

This works in a lot of situations, but not when you're using AgFx for your requests. Below you can find a WebLoadRequest implementation for AgFx which has support for GZIP.

For this solution to work, you'll have to include a reference to Ionic.Zlib.dll which can be found here:
http://dotnetzip.codeplex.com/

Comments


Stefán Jökull Sigurðarson 26-03-2012
The AgFx OverflowException when using SharpGIS.GZipWebRequest issue has been fixed in the AgFx dev branch on Github :) Once that is pulled into main and a new binary is pushed into NuGet, you can just reference both AgFx and SharpGIS.GZipWebClient and have it out of the box (by using the two-line Gzip WebRequest configuration, as per http://www.sharpgis.net/post/2011/08/28/GZIP-Compressed-Web-Requests-in-WP7-Take-2.aspx) :)


2010 ? 08 ? 06 ? - ?? 5:09 2FThis is such a great resource that you are pdnoirivg and you give it away for free. I enjoy seeing websites that understand the value of pdnoirivg a prime resource for free. I truly loved reading your post. Thanks! 29-11-2015
2010 ? 08 ? 06 ? - ?? 5:09 2FThis is such a great resource that you are pdnoirivg and you give it away for free. I enjoy seeing websites that understand the value of pdnoirivg a prime resource for free. I truly loved reading your post. Thanks!


New Comment

Name
E-mail (not published)
Comment
Enter the code shown: