4

Hai guys,

I have list of images(not image paths) retrieved from sql server database... I am converting that datatable to json... My question

  • Can json Datasource hold/contain an Image?

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

ACP
  • 33,788
  • 98
  • 223
  • 363

1 Answers1

5

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

You could try base64 encoding the data. Some other alternatives are described in this question.

Community
  • 1
  • 1
mopoke
  • 10,327
  • 1
  • 30
  • 31