AnsweredAssumed Answered

Base64Decode Issue with Container Field

Question asked by fmdataweb on Jun 3, 2016
Latest reply on Jun 5, 2016 by fmdataweb

I'm working with a PHP CWP website and we're setting the contents of a text field with some Base64 encoded images. We have an auto enter calc on a container field that should convert from the raw Base64 to the image in the container field, but when the record is created all we get is a "?" character showing on the container field.

 

If I then run a script that uses the same calculation as the auto enter calc but does a Set Field on the container field the image appears. If I copy/paste the Base64 string to fire the auto-enter calc the image also appears.

 

Here's the auto enter calc:

 

Base64Decode ( CustomerPhoto  ; "photo.png" )

 

For some reason it's not firing on the initial creation of the record via CWP.

Outcomes