I have a pdf file stored in Oracle DB as a Blob and trying to retrieve using a TO. I have copied below the setter and getter method from the TO and also the logs.
Could you please help me try to figure out why am I getting a NullPointerException.
As you can see in the logs the setter method stores the blob object and prints the size as 30. The getter method passes the null check and prints the object.toString() but when it comes to this.docBlob.length() an exception is thrown.
Also, to add flex calls a servlet which calls a spring service to get the pdf from the database. The TO with pdf populated from DB is returned by the service method to the servlet.