Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个 Windows 窗体应用程序来扫描任何文档。扫描图像后,我将其以字节的形式保存在系统中的文件夹中。现在我想从数据库中检索图像,给出文件夹的路径。是否是否可能。如果可能请帮助。
public Image byteArrayToImage(byte[] byteArrayIn) { MemoryStream ms = new MemoryStream(byteArrayIn); Image returnImage = Image.FromStream(ms); return returnImage; }
来源:C# 图像到字节数组和字节数组到图像转换器类