fixed it by using the ByteArrayOutputStream.size a...
# gradle
d
fixed it by using the ByteArrayOutputStream.size after the writer write to that outputstream.