Have you tried reading directly from the InputStream?