Skip to content

I am unable to decode my Base64 data URI into a PNG image #1677

@doggy8088

Description

@doggy8088

Current behavior

I have a Base64 image that is a valid PNG format.

base64-data-uri-string.txt

When I paste into DevToys, there is no image shown in the preview area.

Image

If I base64 decode this base64-string under WSL, I will get a valid PNG file.

base64 -d ./a.txt > a.png

How to reproduce it (as minimally and precisely as possible)

  1. download base64-data-uri-string.txt
  2. paste into DevToys > Base64 Image
  3. The image unable shown.

Expected behavior

I expected the image shown in the preview area.

Screenshots

Image

Workaround

No

Affected platforms

Windows

Affected DevToys kind

DevToys (app with GUI)

DevToys Version

I tried the following version, all failed.

  • Version 1.0.14.0 | X64 | RELEASE | 3ad0ff2 | 3ad0ff2
  • Version 2.0-preview.3

Relevant Assets/Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions