sql,将图像类型转换为varbinary
伙计们怎么转换图片 我的电脑桌面上有“jpg”图片“我想要它的SQL'varbinary(MAX)'值” 怎么做 请注意:该图像位于我的桌面上,我无法将其附加到SQL数据库中您可以使用CLR将C#函数导入SQLsql,将图像类型转换为varbinary,sql,image,Sql,Image,伙计们怎么转换图片 我的电脑桌面上有“jpg”图片“我想要它的SQL'varbinary(MAX)'值” 怎么做 请注意:该图像位于我的桌面上,我无法将其附加到SQL数据库中您可以使用CLR将C#函数导入SQL public byte[] ImageLoader(string ImageAddress) { StreamReader SR = new StreamReader(ImageAddress); return Encoding.Unicode.G
public byte[] ImageLoader(string ImageAddress)
{
StreamReader SR = new StreamReader(ImageAddress);
return Encoding.Unicode.GetBytes(SR.ReadToEnd());
}