Base64 in JSON

  

Hey Guys,

I was wondering how you would create a Structure that would correspond to the following Request for a REST API:


{    "inputs": [      {        "data": {          "image": {

            "base64": "'"$(base64 /home/user/image.jpeg)"'"          } 

       }      }    ]  }

Solution

Hi Tanveer,

Binary Attributes are automatically converted to/from base64.

Solution

Kilian Hekhuis wrote:

Hi Tanveer,

Binary Attributes are automatically converted to/from base64.

Thank you for clarifying this. Perfecto!


Glad I could be of help Tanveer! Happy coding :)