The current implementation of BlobInputStream does

Bruce Momjian <bruce@momjian.us>

Commit: e046e1dfab4f62e24f1abbff7757b0d89620f225
Author: Bruce Momjian <bruce@momjian.us>
Date: 2001-05-16T03:29:01Z
Releases: 7.2.1
The current implementation of BlobInputStream does
not properly handle 8-bit unsigned data as it blindly
casts the byte to an int, which java most helpfully
promotes to a signed type.  This causes problems when
you can only return -1 to indicated EOF.

The following patch fixes the bug and has been tested
locally on image data.

Chad David

Files