Uploaded image for project: 'Lucee Development'
  1. LDEV-1476

Image data corrupted while using data from tobase64 ()

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.6.1
    • Labels:
      None
    • Sprint:

      Description

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

      image = ImageRead('test.jpg');
      binary_image = toBinary(toBase64(image));
      file action="write" output="#binary_image#" file="output.jpg";
      

      Output :
      // Image corrupted

      Work around

      Using fileReadBinary function issues goes away

      image = fileReadBinary('test.jpg');
      file action="write" output="#image#" file="output.jpg";
      

      Output:
      // Image without any issues.

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

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              pothys-mitrahsoft Pothys - MitrahSoft
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: