Can json Datasource store / contain image?

Hi guys

I have a list of images (not image paths) extracted from sql server database ... I convert this datatable to json ... My question

  • Can json Datasource store / contain image?

If so, how to do it ... Any suggestion ..

+4
source share
1 answer

From json.org :

JSON does not have <[CDATA []]>, therefore it is not suitable for acting as a carrier of sounds or images or other large binary payloads.

You can try base64 to encode data. Some other options are described in this question .

+5
source

Source: https://habr.com/ru/post/1299231/


All Articles