imageReadBase64

Creates a ColdFusion image from a Base64 string.

imageReadBase64(string) → returns any

Argument Reference

string string
Required

a variable or Base64 string

Links more information about imageReadBase64

Examples
Sample code invoking the imageReadBase64 function

convert base64 representation of a small red dot to an image

imgObj = imageReadBase64('iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==');
cfimage(action="writeToBrowser", source=imgObj);

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub