在Sql Database中保存图像的问题c# [英] Problem in saving image in Sql Database c#

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

问题描述

如何解决图片中的错误

https:// www.dropbox.com/s/66zsy6s6olbx54l/questionimage1.png?m= [ ^ ]



我的数据库结构

https://www.dropbox.com/s/o8m98hlyy45enib/questionimage2.png?m= [ ^ ]

How to solve the error in the picture
https://www.dropbox.com/s/66zsy6s6olbx54l/questionimage1.png?m=[^]

My Database Stucture
https://www.dropbox.com/s/o8m98hlyy45enib/questionimage2.png?m=[^]

推荐答案

使字段更大。

文件名的各个部分(即路径中的每个子目录和最终文件名)限制为255个字符,总路径长度有限在NTFS中大约32,000个字符 - 但如果您的年龄较大,则应保持总长度低于260个字符系统只分配那么多。



50字节显然是不够的。



未来,如果您需要帮助,复制并粘贴您的信息,请不要发布快照链接 - 它表明您很懒惰,并不关心帮助我们帮助您。有些人根本不会关注图片链接,因此您可以限制可能获得的有用回复数量。
Make the field bigger.
The individual parts of a filename (i.e. each subdirectory along the path, and the final filename) are limited to 255 characters, and the total path length is limited to approximately 32,000 characters in NTFS - but you should keep the total length below 260 characters if your can aas older systems only allocate that much.

50 bytes is clearly not going to be enough.

And in future, if you want help, copy and paste your information, don't post links to snapshots - it shows you are lazy and don't care to help us to help you. Some people will not follow links to images at all, so you restrict the number of useful replies you may get.


这篇关于在Sql Database中保存图像的问题c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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