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.