Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset Stream after reading ImageMetadata #291

Open
max-peroch opened this issue May 6, 2024 · 0 comments
Open

Reset Stream after reading ImageMetadata #291

max-peroch opened this issue May 6, 2024 · 0 comments

Comments

@max-peroch
Copy link

Hello,

Is there any way to know what's the maximum amount of bytes that can be consumed from a stream in order to read the ImageMetadata?

I would like to be able to reset the stream after reading the metadata with ImageMetadata.fromStream(bufferedStream) from a BufferedInputStream, but the stream needs to be "marked" first.

Any idea if that's possible?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant