Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

Json parsing issue

$
0
0

We use the cf binaryencode function to convert a binary file to a base64 string that then is inserted into a coldfusion structure. Then we use the serizlizeJSON function to convert that structure to JSON.

 

When it fails we get this error:

 

JsonParsingError - Failed to decode VALUE_STRING as base64 (MIME-NO-LINEFEEDS): Illegal character '' (code 0xfed8) in base64 content at [Source: java.io.StringReader@192fd063; line: 1, column: 12229]

 

Using the same code and the same file works correctly in CFMX 9.

 

We narrowed down to the serializeJSON function by manually creating the JSON string and bypassing the serializeJSON function completely.

 

Running CF11 Update 5 did not solve this either.

 

Anyone have any ideas on how to remedy this?

 

thanks!

- Alex


Viewing all articles
Browse latest Browse all 14291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>