Exception when opening stream - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Exception when opening stream

Exception when opening stream 3 years 8 months ago #6999

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0
Hello,
I want to open a PDF document. I use this code:
PDFFileStream stream = new PDFFileStream();
stream.open(fullPath);
res = doc.OpenStream(stream, "");
This code throws an exception NullPointerException with message "println needs a message". This exception is thrown in Document.OpenStream method on this line:
hand_val = openStream(stream, password);
My variable fullPath is existing path to the PDF document.
Can you give me an advice, please, what I'm doing wrong?

EDIT

I found, that the code above works, but only if variable fullPath is a path to the internal storage of device. When fullPath is a path to the external memory card, the code above throws the exception.

Please Log in or Create an account to join the conversation.

Last Edit: by sanyu erisa. Reason: Add more information
  • Page:
  • 1
Powered by Kunena Forum