Hi, I am trying to create an image from a Base64 string and I don’t understand how I can create a new System.Image from decoded base64. I have an entity of type System.Image, a string variable from the DecodeBase64 Java function, but can’t see how I create the image. I’ve read a few other forum entries and one mentioned that you can use the hidden contents attribute of the System.Image entity, but have no idea how to do that. Any help would be great!
asked
Ben Randall
1 answers
6
Ben,
Community Commons has a function that should do this for you. Its called Base64DecodeToFile. Pass in the encoded string and an instantiated Image object and the image should be decoded and committed to your image object.