1

I have converted an image into a BASE64 encoded string , and then i need plz someone to explain howto convert it as json string, and insert into DB

or else if any other ways is available to convert image as json string plz someone explain me

2
  • convert image as json string an image encoded to base64 gives you a string ... there's no reason to "convert" a string to JSON ... what key would you use for this object? or is it just a JSON encoded array? you only have a single string, no reason to stick it in an array - keep things simple - a base64 encoded image is fine to work with Commented Dec 1, 2016 at 8:17
  • Refer this stackoverflow.com/questions/4665049/… Commented Dec 1, 2016 at 9:15

1 Answer 1

1

read here, you can use btoa (encode) and atob(decode) methods

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.