plugin Encode - Base64 encode

Plugins for SynWrite and CudaText...
Post Reply
pllkvv
Posts: 4
Joined: 30.11.2022 01:21

plugin Encode - Base64 encode

Post by pllkvv »

When I apply the Base64 encode from the Encode plugin to an image file, I am unable to get the same results I see in Notepad++ or Inkscape.

I have tried the different options presented in the "File is maybe not text" window.

I found this and was able to create a plugin and the results match Notepad++:

https://stackoverflow.com/questions/606 ... ows-editor

I am curious why there is a difference. Am I missing a step when I use the Encode plugin? An Option isn't enabled?


Thank you.
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

But how did you apply Encode plugin to an image file? did you open image file as plain text? I am not sure it works ok for binary/image files+ Encode plugin because some text encoding may break the result.
pllkvv
Posts: 4
Joined: 30.11.2022 01:21

Post by pllkvv »

File - Open file ... image file.

The "File is maybe not text" window appears: Edit anyway, Viewer - text mode, .... I have tried them all.

Once the file is opened, I select all and apply the base64. In some cases, nothing happens. In other cases - Edit Anyway, for example - I get results, but they differ from Notepad++.

So, I was trying to figure out why the results are different.
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

Different because some text encoding is applied. not plain file is read into encoder. I will merge that sample plugin
https://stackoverflow.com/questions/606 ... ows-editor
into CudaExt soon. you must use this way.
pllkvv
Posts: 4
Joined: 30.11.2022 01:21

Post by pllkvv »

Thank you.
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

I inserted this command (for any files) to plugin 'Encode'.
pllkvv
Posts: 4
Joined: 30.11.2022 01:21

Post by pllkvv »

Thank you! Works.
Post Reply