Oops, I was looking at the code before the fix. Sorry. 2016-10-14 9:07 GMT+03:00 Svetlin Zarev <svetlin.angelov.za...@gmail.com>:
> Hi Mark! > > > Fixed. > > > Mark > > > What about the inconsistency between getContent() and doGetInputStream() ? > In case of doGetInputStream() when a FileNotFoundException is thrown, the > caller will get a "null" stream. But in case of getContent() the caller > will get a byte[] full of zeroes, which will result in ByteArrayInputStream > that returns incorrect content. Also if an IOEx is thrown during read, the > caller may get corrupted content -> one part filled with zeroes. > > > Best regards, > > Svetlin >