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

Ensure read into byte array from InputStream happens fully #10053

Open
davidmoten opened this issue Dec 23, 2023 · 2 comments
Open

Ensure read into byte array from InputStream happens fully #10053

davidmoten opened this issue Dec 23, 2023 · 2 comments

Comments

@davidmoten
Copy link

Stumbled across this:

When reading into a byte array using an InputStream you need to check the number of bytes written (may have written less than the length of the array passed). Consequently in the situation above you need a loop (or some helper method) to ensure the full length is written to.

@agibsonccc
Copy link
Contributor

@davidmoten mind submitting a PR if you know the fix?

@davidmoten
Copy link
Author

Ok

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

2 participants