Example #1
0
        public static byte[] LZWDecode(byte[] inb)
        {
            MemoryStream ostr = new MemoryStream();
            LZWDecoder   lzw  = new LZWDecoder();

            lzw.decode(inb, ostr);
            return(ostr.ToArray());
        }
Example #2
0
 /** Decodes a stream that has the LZWDecode filter.
 * @param in the input data
 * @return the decoded data
 */    
 public static byte[] LZWDecode(byte[] inp) {
     MemoryStream outp = new MemoryStream();
     LZWDecoder lzw = new LZWDecoder();
     lzw.Decode(inp, outp);
     return outp.ToArray();
 }