tracker issue : CF-4204398

select a category, or use search below
(searches all categories and all time range)
Title:

Writing an image to a file from Base64 string generates black image

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Michael C. / ()

Created: 05/20/2019

Components: CFIMAGE

Versions: 2016

Failure Type: Non Functioning

Found In Build/Fixed In Build: 2016,0,09,314003, 2016,0,10,314028 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2012 Server x64

Vote Count: 3

Problem Description:
After applying CF2016 Update 9 or 10, when trying to generate an image from a Base64 string, the generated image is a solid black rectangle, not the desired image.

NOTE: I have opened this issue because CF-4204075 was closed without resolution, and it is still a serious issue for multiple users, as can be seen in the comments section of CF-4204075. Further, CF-4204075 was flagged as a duplicate of CF-4204071, yet this issue does not exist in the Bug Tracker database.

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/2i4G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mhBiQgAYXEGJCABMoEFJIyQg1IQAIKiTEgAQmUCSgkZYQakIAEFBJjQAISKBNQSMoINSABCSgkxoAEJFAmoJCUEWpAAhJQSIwBCUigTEAhKSPUgAQkoJAYAxKQQJmAQlJGqAEJSEAhMQYkIIEyAYWkjFADEpCAQmIMSEACZQIKSRmhBiQgAYXEGJCABMoEFJIyQg1IQAIKiTEgAQmUCSgkZYQakIAEFBJjQAISKBNQSMoINSABCSgkxoAEJFAmoJCUEWpAAhJQSIwBCUigTEAhKSPUgAQkoJAYAxKQQJmAQlJGqAEJSEAhMQYkIIEyAYWkjFADEpCAQmIMSEACZQIKSRmhBiQgAYXEGJCABMoEFJIyQg1IQAIKiTEgAQmUCSgkZYQakIAEFBJjQAISKBNQSMoINSABCSgkxoAEJFAmoJCUEWpAAhJQSIwBCUigTEAhKSPUgAQkoJAYAxKQQJmAQlJGqAEJSEAhMQYkIIEygX8DUC/UfScBFxwAAAAASUVORK5CYII=">
<cfset image64 = imageReadBase64(myimage)>
<cfimage source="#image64#" destination="testimage.png" action="write" format="png" isbase64="yes">

Actual Result: Black image

Expected Result: Actual image

Any Workarounds: Revert to CF2016 Update 7

Attachments:

Comments:

Please fix this as it has broken our Signature capture functionality. We had to roll back but we need this addressed to apply relevant security patches.
Vote by David F.
30788 | May 21, 2019 02:07:21 AM GMT
This bug broke our production application when we applied the most recent updates to CF 2016. We had to roll back to 2016 update 7
Comment by Charles M.
30798 | May 21, 2019 12:28:33 PM GMT
I believe this may be the source of this issue. They note in the Stack overflow article that there is a fix available if you reach out to adobe via email. I am doing so. https://tracker.adobe.com/#/view/CF-4204284 https://stackoverflow.com/questions/55201337/saving-jsignature-image-no-longer-transparent
Comment by Charles M.
30799 | May 21, 2019 01:01:39 PM GMT
The original bug CF-4204071 is made external now. Marking this bug as duplicate. The fix will be merged in the next bug-fix hotfix release.  In case you need the patch urgently, you can reach out to support on cf.install@adobe.com . Nitin
Comment by Nitin K.
30818 | May 24, 2019 05:21:34 AM GMT