Skip to content

Cannot download PNG file with iValue.download() method #186

Description

@ncalaway

Description

PNG files can't be downloaded using the .download() method. Possibly other files also have this problem. fsWriteSync throws an error that the file signature is invalid.

Steps to reproduce

  1. Save an img to a variable using context.exists()
  2. call .download on the variable; pass a file path as the first and only argument, saved as a PNG

Expected behavior

File downloaded correctly

Actual behavior

Invalid file signature error thrown; corrupt image file saved to filesystem

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions