简体   繁体   English

当我在mvc中获取base64的数据时,发现异常{“无效的URI:Uri字符串太长。”}

[英]When i fetch data of base64 in mvc found exception {“Invalid URI: The Uri string is too long.”}

我在db中有类型为varbinary的文件内容列,我正在base64中对其进行转换以在网页中呈现图像,但是以下给出了异常。

There is a limit to the size of a URL (I think around 2000 chars). URL的大小有限制(我认为大约2000个字符)。

For this kind of thing you should be making a POST request and returning the image data/content as a result of that...ie not using the URL to pass it around. 对于这种情况,您应该发出POST请求,并因此而返回图像数据/内容...即不使用URL来传递它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM