tracker issue : CF-3202733

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

Reading Base 64 Image Strings

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Jonathan Hallenberg / Jonathan Hallenberg (webdevNASM)

Created: 05/31/2012

Components: CFIMAGE

Versions: 9.0.1

Failure Type: Non Functioning

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win 2008 Server

Vote Count: 0

Problem Description:I have a line of code that works in ColdFusion 8, but NOT in ColdFusion 9.0.1. I am pulling an image from a database where it is stored as a base 64 string. The images are read just fine in ColdFusion 8, but when I try to do this exact same thing in CF 9, it breaks! Here is the code:

<cfset myCFimage=ImageReadBase64("#thisImg.fullstring#")>

which gives the following error:
Numbers of source Raster bands and source color space components do not match null 

This doesn't happen with EVERY image, only with certain images. I am working on finding some common factor for the images that are failing.

Steps to Reproduce: I just view the page that is trying to read the image.

Actual Result: error thrown: Numbers of source Raster bands and source color space components do not match null 

Expected Result: I should get an image that I can embed on the page.

Any Workarounds: None yet.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3202733

External Customer Info:
External Company:  
External Customer Name: webdevNASM
External Customer Email:  
External Test Config: My Hardware and Environment details:



Failing Server Config:

Server Product  ColdFusion  

Version  9,0,1,274733    

Edition  Enterprise        

Operating System  Windows Server 2008    

OS Version  6.0    

Update Level  /C:/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/chf9010002.jar    

Adobe Driver Version  4.0 (Build 0005)    

Java Version  1.6.0_22    

 



Working Server Config:

Server Product  ColdFusion  

Version  8,0,0,176276    

Edition  Enterprise      

Operating System  Windows 2003    

OS Version  5.2    

Java Version  1.6.0_14

Attachments:

Comments:

As far as I can tell, it is only on JPEG images that have a greyscale color profile.
Comment by External U.
19139 | May 31, 2012 10:18:57 AM GMT
According to Bridge CS4, all of the images have a color profile of "EPSON Gray - Gamma 1.8" and when I open the files in Photoshop CS4, I get "The embedded ICC profile cannot be used because the ICC profile is invalid."
Comment by External U.
19140 | May 31, 2012 11:14:24 AM GMT
Can you also attach the image in base64 string so that we can investigate?
Comment by Rupesh K.
19141 | April 01, 2013 02:07:17 AM GMT
Since there has been no response, closing the bug. If you still do face the problem, let us know, the bug would be reopened.
Comment by S P.
19142 | December 03, 2014 12:55:42 AM GMT