我正在尝试将Tif文件从LWZ压缩转换为Jpeg压缩。代码在下面
// There is only one row in the Datatable
foreach (DataRow ImageRow in dtImage.Rows)
{
memoryStream = new MemoryStream();
memoryStream.Write((Byte[])ImageRow[0], 0, ((Byte[])ImageRow[0]).Length);
Image MyImage = Image.FromStream(memoryStream);
MyImage.Save(@"c:\_temp\abc1.tif", System.Drawing.Imaging.ImageFormat.Jpeg);
memoryStream.Flush();
}
abc1.tif创建成功。但是当我查看文件的属性时,压缩为空。我怎么知道文件已正确压缩?