将图像从数据库保存到物理驱动器或目录 [英] Save Image from database to phisical drive or directory
本文介绍了将图像从数据库保存到物理驱动器或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我将Image存储在数据库中。
并将其作为我的c#代码中的字节数组进行检索。
之后从数据库中读取我想再次在Image中转换这个字节数组并想要物理存储到服务器上。
如何做到这一点?
任何建议都值得注意。
问候,
Nirbhay
Hello,
I am storing Image in a database.
& retriving it as a byte array in my c# code.
After reading from database I want to again convert this byte array in a Image & want to physically store on to the server.
How to do this?
Any suggestions are appreciable.
Regards,
Nirbhay
推荐答案
应该有所帮助的几个链接你将字节数组转换为图像 -
C#Image to Byte Array和Byte Array to Image Converter Class [ ^ ]
http://blogs.msdn.com/b/vijay/archive/200 7/07/20 /如何转换图像到字节和字节到图像使用-c-in-asp-net.aspx [ ^ ]
本文应该可以帮助您将图像保存到驱动器中 -
C#中的图像:保存,调整大小,并转换为二进制 [ ^ ]
Couple of links that should help you convert byte array to an image -
C# Image to Byte Array and Byte Array to Image Converter Class[^]
http://blogs.msdn.com/b/vijay/archive/2007/07/20/how-to-convert-image-into-byte-and-byte-to-image-using-c-in-asp-net.aspx[^]
This article should help you save the image to drive -
Image in C#: Save, Resize, and Convert to Binary[^]
这篇关于将图像从数据库保存到物理驱动器或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文