You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here the FF byte is returned directly as int (== -1) which for input stream is interpreted as the end of stream.
The return currentBuffer.get(); line should be changed to currentBuffer.get() & 0xFF to return correct values.
Reported by Eva Krejcirova
The text was updated successfully, but these errors were encountered:
I am trying to use binary input stream for my rest calls but the input stream get's truncated once first FF byte is encountered.
The reason is following part of PublisherInputStream class:
Here the FF byte is returned directly as int (== -1) which for input stream is interpreted as the end of stream.
The return currentBuffer.get(); line should be changed to currentBuffer.get() & 0xFF to return correct values.
Reported by Eva Krejcirova
The text was updated successfully, but these errors were encountered: