将图像保存到SQLSERVER [英] saving Images to SQLSERVER

查看:75
本文介绍了将图像保存到SQLSERVER的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过使用文件上传和按钮在我的数据库sql serever中保存图像。我使用数据类型作为图像和VARBINARY(MAX),但它没有保存图像。

点击保存按钮这个错误即将来临



不允许从数据类型sql_variant到varbinary(max)的隐式转换。使用CONVERT函数来运行这个查询。



请帮帮我..我急需这个

解决方案

< blockquote>看看这里: CP知识库 [ ^ ]。有很多例子。


参考

写一个sql server中使用c#的图像[ ^ ]

i want to save image in my database sql serever by using file upload and button. and i had used datatype for image as image and VARBINARY(MAX) but its not saving the images.
on clicking Save button this error is coming

Implicit conversion from data type sql_variant to varbinary(max) is not allowed. Use the CONVERT function to run this query.

please help me out..i need this urgently

解决方案

Have a look here: CP Knowledge Base[^]. There are tons of examples.


Refer
write a image in sql server using c#[^]


这篇关于将图像保存到SQLSERVER的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆