compress and decompress folder
private void CompressFile( string sDir, string sRelativePath, GZipStream zipStream) { //Compress file name char [] chars = sRelativePath . ToCharArray(); zipStream . Write( BitConverter . GetBytes(chars . Length), 0 , sizeof ( int )); foreach ( char c in chars) zipStream . Write( BitConverter . GetBytes(c), 0 , sizeof ( char )); //Compress file content ...