When compressing a string "stream" the '/r' gets stripped out from '/r/n'. I am using the ICSharp.zip library for compression. Has any one else faced this problem, and if you have is there is a workaround?
+1
A:
Does your zip library have a parameter to treat the stream as either text or binary? It sounds like it's treating it as text and is changing the line-end delimiter (some apps do this to try and make sure it matches the target platform). If you can tell it to treat the data as binary it might help.
Herms
2008-09-19 15:49:36
A:
Try DotNetZip.
It's a managed-code library, doesn't have problems with CR/LF translation.
fee. open source.
Cheeso
2009-02-10 06:40:33