尝试在 coldfusion 中将 base64 转换为图像,但显示为黑色图像

Try to conver the base64 to image in coldfsuion but its showing it black image

尝试将 base 64 转换为 coldfusion 中的图像,但它显示的是黑色图像。

<cfset myImage = "iVBORw0KGgoAAAANSUhEUgAAAZQAAACkCAYAAACwyNi5AAAaGklEQVR4Xu2dC9B9VVnGHwsU8UYKmFysJIHUCQxTEy2t1CzR1MlUEENHSUsjL0E6Rl4mobDELoTjaIRg4WAWmXnLLjpesFBKhUQMMTTyVoYZZDY//mvhcv/P2Zdz1jnf3vt91sw33/eds/fae/3WOvs5a73vet+bycUETMAETMAEKhC4WYU6XIUJmIAJmIAJyILiQWACJmACJlCFgAWlCkZXYgImYAImYEHxGDABEzABE6hCwIJSBaMrMQETMAETsKB4DJiACZiACVQhYEGpgtGVmIAJmIAJWFA8BkzABEzABKoQsKBUwehKTMAETMAELCgeAyZgAiZgAlUIWFCqYHQlJmACJmACFhSPARMwARMwgSoELChVMLoSEzABEzABC4rHgAmYgAmYQBUCFpQqGF2JCZiACZiABcVjwARMwARMoAoBC0oVjK7EBEzABEzAguIxYAImYAImUIWABaUKRldiAiZgAiZgQfEYMAETMAETqELAglIFoysxARMwAROwoHgMmIAJmIAJVCFgQamC0ZWYgAmYgAlYUDwGTMAETMAEqhCwoFTB6EpMwARMwAQsKB4DJmACJmACVQhYUKpgdCUmYAImYAIWFI8BEzABEzCBKgQsKFUwuhITMAETMAELiseACZiACZhAFQIWlCoYXYkJmIAJmIAFxWPABEzABEygCgELynoYf0vSpyXdRtK/SLpO0r9L+i5JX5f0nal63ttb0v6SLpd0WHr92pbXeO8rkp6U6uaUqyT9QfH/enfvs03ABEygIgELynCYPyPpqZIOKARjeC3rn4GwnLB+Na7BBEzABOoQsKAM43iJpCOHnbLRo6+RdJakiyW9daNXcuUmYAIm0EHAgtJviDxD0gMl/VRx+BskfVTS2WkJ6wpJd5R0TFrWukWlJS+Wyyh3k3S0pPu1zIw49hxJv9qvWT7KBEzABOoRsKB0s3y6pDMl7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CFpTp96FbsJwAu+DZDZ/LGyU9pvjfXl4ePSZQkYAFpSJMVzVKAudJekK6s+tTeuBz0v+vk3SsJI45bpR375sygQkRsKBMqLN8qysReKCkt0vaI539YUlHpr/zjnpcjAl772ICJrAGAQvKGvB86mQIfEXSLYu7PUbSVyVdKOm2kj4vad/JtMY3agIjJWBBGWnH+LaqEjhf0uOLGln6unnjCveV9P6qV3VlJhCMgAUlWIcHbe7jJL2+o+2OOBx0cLjZ9QhYUOqxdE3jJvBBSUe13OLLJT133E3w3ZnAuAlYUMbdP767ugSukHTIgio/LunQupdybSYQj4AFJV6fR28xBvm9JF0n6d6SLpb05uhQ3H4TqEHAglKDouswARMwAROQBcWDwARMwARMoAoBC0oVjK7EBEzABEzAguIxYAImYAImUIXA/wM+vSPhBI0YdgAAAABJRU5ErkJggg==">

<cfimage action = "write" destination = "test_my66.jpeg" source = "#myImage#" isBase64= "yes" overwrite = "yes">

@gowtham,我已经在 cf2018 中解决了你的问题。是的,我们在 cf2018 中遇到了 write & writetobrowser 操作的黑色图像问题。但问题在更新服务器 Coldfusion 2018 更新 4 后得到解决。请按照以下步骤操作。

第 1 步: 转到 cfml 管理员
第 2 步: 导航菜单中的服务器更新选项。 (如果您没有启用自动更新通知,请单击检查更新按钮)
第 3 步:请下载并更新 coldfusion 2018 更新 4。

问题已解决。