Skip to content

Get raw header/indices from file? #121

@Pithikos

Description

@Pithikos

Thanks for your library. It's very well made and the API is a beauty to use.

I just wonder if there is a way to inspect at what point the header was found. For example something like below:

ExifReader.load(e.target.result).then((metadata, headerStart, headerEnd) => {
    // Upload the header of the file..
})

The reason I need this, is because I need to send the raw header to the backend (in order to support various media file and not only JPG). At the moment I need to send 256KB of data regardless if the header is only in the first 512 bytes for example. This becomes a real issue when dealing with 100s of files.

Are there plans to support this? Or is it something that already exists?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions