将图像名称放在数据库中 [英] Putting images names in database
本文介绍了将图像名称放在数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的表中使用图像作为数据类型,但每次我尝试输入我的图像的名称时,我得到此单元格中的值未被识别为有效。
.Net Framework数据类型:字节[]
错误消息:您无法使用结果窗格将此字段数据设置为NULL以外的值。
键入适合的值数据类型或按ESC取消更改。
解决方案
您不能在基于字节数组的字段中键入名称 - 这是一个字符串,它不会有一个直接(默认)转换。
如果你试图在数据库中存储图像的路径,那么你想要一个NVARCHAR字段而不是图像 - 你必须看看你的显示表格,以了解如何显示实际图像。
我们不能告诉你 - 我们不知道你在做什么环境!
I am using image as a data type in my table but every time i try to put in the names of my images i get this "The value in this cell was not recognized as valid.
.Net Framework Data Type:Byte[]
Error message: You cannot use the result pane to set this field data to values other than NULL.
Type a value appropriate for the data type or press ESC to cancel the change.
解决方案
You can't type a name into a byte array based field - that is a string, which doesn't have a direct (default) conversion.
If you are trying to store the path to an image in your DB, then your want a NVARCHAR field rather than IMAGE - and you will have to look to your display table to work out how to display the actual image.
We can't tell you that bit - we have no idea what environment you are working!
这篇关于将图像名称放在数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文