I hereby claim:
- I am jdugan on github.
- I am mrfuturefox (https://keybase.io/mrfuturefox) on keybase.
- I have a public key ASCv1k92DecDJIV3KkgU6CBbGCYThKSFvpQ9KHtz656E9Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The following is step-by-step output of the process to convert an image to a base64 string. If you are having trouble using a local file with Caracal, following this procedure can be helpful in determining where things are going astray.
Download this image from the Caracal example project.
Simple images can be POSTed to JSON API endpoints by converting the binary data to a Base64 encoded string.
The functions required to do should be available in all popular programming languages.
An example in Ruby is provided below.
The folowing ruby class has two public functions. One to encode an image file as a base64 string; another to decode a base64 string into an image file.