阅读背景:

使用LINQ to SQL存储图像:将字节数组或流转换为二进制

来源:互联网 

I am working with LINQ to SQL and my image fields are treated as Binary. It's no big issue to convert the Binary type to byte[] (you can just use the ToArray() method of the Binary object) when I need to render the images, but can someone tell me how to turn either a byte[] or Stream object into the Binary object so I can save it back to the database.I am working with LINQ to SQL and my image fiel




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: