Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Sep 18, 2024 Sep 18, 2024

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 
615
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Oct 04, 2024 Oct 04, 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.

Translate
Community Beginner ,
Oct 04, 2024 Oct 04, 2024

Do you have any updates to this topic?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 04, 2024 Oct 04, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 07, 2024 Oct 07, 2024
LATEST

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines