tracker issue : CF-4180330

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

ImageReadBase64 Complaining The input string is not base64-encoded

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Paul Wesson / Paul Wesson (Paul Wesson)

Created: 08/10/2016

Components: Core Runtime

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description: Executing the "ImageReadBase64" function on a string being pulled from my database is saying "The input string is not base64-encoded". Yet, if I take that exact same string and hard code it into the function, it works as expected.

Here is the base64 string that fails when in variable but works if hardcoded in the function:

(see attached)

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

Watson Bug ID:	4180330

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

ColdFusion 10 update 18

Windows Server 2008 R2

SQL Server 2012

Attachments:

  1. August 10, 2016 00:00:00: 1_sample_text.txt
  2. August 11, 2016 00:00:00: 2_ImageReadBase64.cfm

Comments:

Hi Paul, I used the base64 string provided by you to render the image, both as a hardcoded string and as a coldfusion variable. The image is properly rendered in both the cases. I have also tried the same on a simpler base64 string in which case too it threw no exception. Am attaching the code here, please do let me know if I am missing something or there is something more to it. Thanks, Preethi
Comment by S P.
2041 | August 11, 2016 12:36:03 AM GMT
Okay thanks. So my problem must be my source data as it is being retrieved from the database, or how it is stored in the database because if I take that same data and hard code it into my variable it does work fine. Thanks for your time.
Comment by External U.
2042 | August 11, 2016 04:47:24 AM GMT
Thank you Paul! Hence, will be closing the bug.
Comment by S P.
2043 | August 12, 2016 03:04:18 AM GMT