简体   繁体   中英

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).

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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