Image data corrupted while using data from tobase64 ()

Description

Image data corrupted while using data from tobase64 function. Use below code to reproduced the issue.

Output :
// Image corrupted

Work around

Using fileReadBinary function issues goes away

Output:
// Image without any issues.

It's working fine on 4.5 versions but not in Lucee 5.

Environment

None

Assignee

Michael Offner

Reporter

Pothys - MitrahSoft

Priority

New

Labels

Fix versions

Configure