Its been a while, but I remember using the ServletUtils.getRequestBufferAsBytes to process the request object before I could create a com.adobe.idp.Document object:
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
byte[] content = ServletUtils.getRequestBufferAsBytes(request);
Document uploadedDoc = new Document(content);
....