Is it support Huffman?

Sep 5, 2012 at 7:28 AM

I need comperss string http://www.sinaimg.cn/dy/slidenews/45_img/2012_33/33950_781114_449315.jpg

to d1LVq2KlZS4KZRWAe6y5K8g8UKPRCGmIXLlSvmaQc0C6VpLdt9N7iT6dN3SzI58 with Huffman,

did it supported?

string ss = "http://www.sinaimg.cn/dy/slidenews/45_img/2012_33/33950_781114_449315.jpg";    

DeflaterPending bf = new DeflaterPending();               

 byte[] bt = Encoding.UTF8.GetBytes(ss);               

bf.WriteBlock(bt, 0, bt.Length);               

DeflaterHuffman df = new DeflaterHuffman(bf);             

df.CompressBlock();

 

It like donot work, and take error : NullReferenceException.

at 

ICSharpCode.SharpZipLib.Zip.Compression.DeflaterHuffman.Tree.WriteSymbol(Int32 code)