Skip to content

Switch gzip file type check from extension to "magic" bytes #88

@owlang

Description

@owlang

GZipped an other binary formats have a specific sequence of bytes to mark the binary file type at the top of the file. We should be using this to determine file type rather than extension. A Java implementation of this check for both InputStream and File type objects is already written here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    easySimple fixes for beginners to implementstreamline

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions