.net 页面输出tif图片为什么是乱码,用文件流方式输出tif图片 contentType 设置为image/tif
如题:
.net 页面输出tif图片为什么是乱码,用文件流方式输出tif图片 contentType 设置为image/tiff
图片是tif格式,然后输出文件流到页面,页面的ContentType设置为Image/tiff
但浏览的时候报错,浏览jpg图片 页面设置为Image/jpeg 不会报错
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
文本内容中发现无效字符。处理资源 'http://localhost/xxxx/xxxx/ShowImage.aspx?fid=09022419%2fAntelope.tif&dir=OriginalImage' 时出错。第 1 ...
II*
fid是我文件名
dir是我的文件目录