Skip to main content
Participating Frequently
September 18, 2024
Answered

PSD 25.12 - Invalid Character error thrown when atob(base64)

  • September 18, 2024
  • 2 replies
  • 694 views

Hi all,

after the latest PSD updated of Sept 10, 2024, some CEP primitives throw an error.

 

I've developed a custom plugin, when in a function i've got this code fragment:

 

 

var file = window.cep.fs.readFile(decodeURI(fl.filename), cep.encoding.Base64);
var byteCharacters = atob(file.data);

 

From this last version, the atob primitives thrown an error: InvalidCharacterError: Invalid character.
 
Note that the same code on PSD 25.11 works correctly.
 
I've tried on Windows and Mac with M3 on Rosetta, and i've got the same error in either platform.
 
Could you please check? In the releaseNotes there's nothing regarding it 
This topic has been closed for replies.
Correct answer Lumigraphics

CEP is deprecated. Are you going to move to UXP?

And you can do base64 encode/decode at the system level. That might be more reliable.

2 replies

LumigraphicsCorrect answer
Legend
October 4, 2024

CEP is deprecated. Are you going to move to UXP?

And you can do base64 encode/decode at the system level. That might be more reliable.

Participating Frequently
October 7, 2024

We budgeted a refactoring job for next year, but we still wanted to try to keep the current plugin version working. Mostly, I couldn't find anything about this in the PSD changelogs between 25.11 and 25.12.

I will try to change the encoding in the meantime, until we release the UXP version internally.

Thank you!

Participating Frequently
October 4, 2024

Do you have any updates to this topic?