图像转换为二进制? [英] Convert image to binary?
本文介绍了图像转换为二进制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有(以.png格式)的图像,我想这个图片转换为二进制。
I have an image (in .png format), and I want this picture to convert to binary.
这怎么能使用C#来完成?
How can this be done using C#?
推荐答案
既然你有一个文件使用: -
Since you have a file use:-
Response.ContentType = "image/png";
Response.WriteFile(physicalPathOfPngFile);
这篇关于图像转换为二进制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文