That's about what I've got figured out as well from researching all day. I'm getting there. At this point I am able to call a filemaker script from within the javascript and I believe I have the script to decode the result into a container field. But what I'm stuck on now is how to encode the generated image to Base64 in javascript.