Title:
Coldfusion 2018 CFIMAGE: Write an image to a file from Base64 string is not working.
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/Duplicate
Reporter/Name(from Bugbase): Arwin V. / ()
Created: 03/07/2019
Components: CFIMAGE
Versions: 2016,11.0,2018
Failure Type: Data Corruption
Found In Build/Fixed In Build: 5.1.4 (Build 0001) /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Win 2016
Vote Count: 3
Problem Description:
Coldfusion 2018 CFIMAGE: Write an image to a file from Base64 string is creating black/blank image.
Steps to Reproduce:
See sample code below.
<cfset myimage = "iVBORw0KGgoAAAANSUhEUgAAARIAAAB8CAYAAAClvj+9AAAJZUlEQVR4Xu2dZ6h1RxWGn6ixR7HFXtDYC6goakxQkIANe0NiQf2j2AvYEwuKoGL9oSAmFhJFI7YIotijKCj2Lhp/qNgVg1h5cV/d7m/fc/Y+a597yn4Gvh/fPTNr1jyz7nvP3jOz5jgsEpCABIoEjiu2t/nuETgVOB+4LPBy4AW7NwQ93jYCCsm2zch6/DkeeDzw5h7z1wMuXE+3Wp0LAYVk/2f6AcD7FwzztsDX9h+DI1wnAYVknXQ3a/vSwFeAWy5xwxjY7DztRe8G0V5M4/8N4uLAmcDzBwztcsBfBtSzigQWElBI9itAbg98Dsi3kUXl60Beuv5hv4bvaDZFQCHZFPnp+30t8DjghCWm3wY8Efjr9C5oca4EFJLdn/lHAWf1DOMfQB5z2uUi4IrA33Z/2I5gmwgoJNs0G8N9ybw9EnhHT5O3AHcHbtzz2SUVkeGQrTmcgEIynNW21IxIfPIQZ/Le4y7AK3s+vyHwk20ZhH7sFwGFZHfm80TgS8ANelw+Dfg4cDPgOz2fu1dkd+Z5Jz1VSLZ/2i4GPAQ4p8fVbG/PNveU1Mt7kW7Jt5TPbv8w9XCXCSgk2z17lwLe1KzGtD19HfDMjnCcAby4M5yHA+du9xD1bh8IKCTbO4snN2djbtNy8WPAw4A/dty+KfDdzs9S7z3bOzw92ycCCsl2zuazgVd1XMtL1k/1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FADEpCAQmIMSEACZQIKSRmhBiQgAYXEGJCABMoEFJIyQg1IQAIKiTEgAQmUCSgkZYQakIAEFBJjQAISKBNQSMoINSABCSgkxoAEJFAmoJCUEWpAAhJQSIwBCUigTEAhKSPUgAQkoJAYAxKQQJmAQlJGqAEJSEAhMQYkIIEyAYWkjFADEpCAQmIMSEACZQIKSRmhBiQgAYXEGJCABMoEFJIyQg1IQAIKiTEgAQmUCSgkZYQakIAEFBJjQAISKBNQSMoINSABCSgkxoAEJFAmoJCUEWpAAhJQSIwBCUigTEAhKSPUgAQkoJAYAxKQQJmAQlJGqAEJSEAhMQYkIIEygX8DUC/UfScBFxwAAAAASUVORK5CYII=">
<cfset image64 = imageReadBase64(myimage)>
<cfimage source="#image64#" destination="testimage.png" action="write" format="png" isbase64="yes">
Actual Result:
Black image
Expected Result:
Sign image
Any Workarounds:
No workarounds in CF2018.
It is working in CF11.
Attachments:
Comments: