Re: gzip compression for compact framework



The CF doesn't support it. You'd have to compress on one end and decompress
on the other yourself.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"sameer" <sameer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:78ACF424-509F-4FC4-8096-E8BF0E9F06D0@xxxxxxxxxxxxxxxx
Chris\ R_Z_aret,

thanks for your reply but i think i had not made my self clear as to what
i
really was looking for, sorry about that. My barcode scanner application
calls webservices over the internet to access data from the database and
while that data is comming back i want IIS to compress it and as you know
for
it to send me back compressed data in my initial request i have to pass
the
http header Accept-Encoding with a value of Gzip.

In my desktop application which communicates in the same matter i.e using
webservices, i overridden the webservice's GetWebRequest method and add
the
GzIp header and for the GetwebResponse methods i decompress it. i cannot
do
this hear because these methods can notbe overridden in cmpact framework
1.

can you suggest of any way i can go arond this problem, one suggestion
taht
i got from some internet research is to create my own custom webrequest,
add
a customer header and sent it across. i have tried this but jsut not able
to
do it

has any of you guys done this? any help is appreciated.

thanks


"<ctacke/>" wrote:

Yep, zlibCE fully supports gzip, and the code is very likely to work in
CF
1.0 (though we didn't write it to target 1.0 nor did we test that).


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--



<r_z_aret@xxxxxxxxxxxx> wrote in message
news:pj3st25dftml1nngbski7gnngmr736qq5r@xxxxxxxxxx
On Tue, 20 Feb 2007 15:13:20 -0800, sameer
<sameer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:


Hi guys,

Environment: compact framework 1.1, service pack 3, visual studio 2003
using
VB, Windows CE 4.0\ 5.0, GZIP compressionm, IIS 6.0

I have implemented compression in my desktop application but cannot do
it
with barcode scanners.

Last time when I had done this it was without the SP3, after doing
some
research came to know the necessary methods that are to be overridden,
GetWebRequest and GetwebResponse did not exist before the SP3 and so
had
to
install SP3 but even after this, VS2003 is not able to handle
overriding
these methods. Can any body shed some light on how to implement
compression (
Gzip) on the compact scanners , if you can point me some source code
that
would be even better.

I can't help with GZip, but the following might be helpful:
www.opennetcf.com/zlibce
See current thread called "zlibCE" release in this newsgroup.



thanks

sameer

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and
please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com





.



Relevant Pages

  • Re: zlib OpennetCF question
    ... Chris Tacke, Embedded MVP ... Managed Code in an Embedded World ... submit the length of the original bytearray with it to dim it correctly, ... compress. ...
    (microsoft.public.pocketpc.developer)
  • Re: zlib OpennetCF question
    ... Chris Tacke, Embedded MVP ... Managed Code in an Embedded World ... I could submit the length of the original bytearray with it to dim it correctly, but yeah that's not really a good solution... ... But I have now no file, but a String which I want to compress. ...
    (microsoft.public.pocketpc.developer)
  • Re: NSA and crypto
    ... If you still think gzip is better to use ... You really need a bijective compress so that no information ... no concept of entropy or Unicity Distance. ... Encrypt this with AES using ...
    (sci.crypt)
  • Re: gzip is faster with -O3
    ... gzip isn't usually used to compress incompressible data. ... CPU time is better than wallclock time. ...
    (freebsd-stable)
  • ANNOUNCE: DJGPP port of GNU gzip-1.3.12 uploaded
    ... This is a port of GNU Gzip 1.3.12 to MSDOS/DJGPP. ... DJGPP specific changes. ... Eli Zaretskii's port of GNU Gzip 1.2.4a. ... (if you really mean to compress the text you type from the keyboard). ...
    (comp.os.msdos.djgpp)