diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-07-18 12:11:45 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-07-18 12:51:49 +0100 |
commit | 537a467dfd6392d70624805943ac65182ec881b4 (patch) | |
tree | cc2fc480bec283e99030c8eb7dbcf9090960f5a9 /platform/java | |
parent | cb62fbac8d7f4445aad87aa186ce80d5766ef22f (diff) | |
download | mupdf-537a467dfd6392d70624805943ac65182ec881b4.tar.xz |
Bug 696662: Android viewer: data from URI stream fix.
Apparently, if MuPDF is invoked on a content stream that
comes from a URI, then is.available() can report 0 bytes
(as there is no data buffered). Use a modified formulation
that reads as much data as possible from the stream into
a BufferedOutputStream and then makes a byte array from that.
Would be nicer if the core could actually read from the
stream directly, perhaps, but that can wait for the new JNI
based version.
Thanks to Marc K for identifying the problem and supplying
the patch.
Diffstat (limited to 'platform/java')
0 files changed, 0 insertions, 0 deletions