各位海
我有 的列表图片 (不是图像路径)从 sql server 数据库中检索...我正在将该数据表转换为 json...我的问题
如果是这样怎么做...任何建议..
最佳答案
来自 json.org :
JSON does not have a <[CDATA[]]> feature, so it is not well suited to act as a carrier of sounds or images or other large binary payloads.
您可以尝试对数据进行 base64 编码。 this question 中描述了其他一些替代方案。 .
关于json - json 数据源可以保存/包含图像吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2126557/