public static byte[] LZWDecode(byte[] inb) { MemoryStream ostr = new MemoryStream(); LZWDecoder lzw = new LZWDecoder(); lzw.decode(inb, ostr); return(ostr.ToArray()); }
/** 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(); }