#62 InputStream not parsing correctly

closed-duplicate
nobody
1
2007-08-28
2006-01-25
Anonymous
No

When I supply an InputStream to the Document.parse
function, it fails with

[Fatal Error] :-1:-1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.

If I take the same stream, read it into a byte array,
convert that to a String, then use Document.parse
(InputSource) on a StringReader, it works fine.
Seems there's a problem w/ parse for InputStream.

Discussion

  • Logged In: YES
    user_id=232602
    Originator: NO

    Duplicate of 1538813

     
    • priority: 5 --> 1
    • status: open --> open-duplicate
     
    • status: open-duplicate --> closed-duplicate