You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2019/09/03 05:42:03 UTC

[GitHub] [commons-imaging] emopers opened a new pull request #53: Close OutputStream before toByteArray() on underlying ByteArrayOutputStream

emopers opened a new pull request #53: Close OutputStream before toByteArray() on underlying ByteArrayOutputStream
URL: https://github.com/apache/commons-imaging/pull/53
 
 
   When an `OutputStream` instance wraps an underlying `ByteArrayOutputStream` instance,
   it is [recommended](https://stackoverflow.com/questions/2984538/how-to-use-bytearrayoutputstream-and-dataoutputstream-simultaneously-java) to flush or close the `OutputStream` before invoking the underlying instances' `toByteArray()`.
   
   This pull request adds a call to `close` at the end of the `write` method of `TiffImageWriterLossy`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services