Dave Tolls wrote:Converting the serialised BLOB back into meaningful data in PL/SQL is going to be very hard.
You'd need to look into what the structure of the data is (how Java serialises things).
You really need to use Java.
Dave Tolls wrote:Assuming this "Java Object" is a serialised instance of your DVO then you are going to need to write some Java code to convert that back to a Java object and then pick out the data you want.
I don't know what state Java in Oracle is in, but that would be the place to do it and call that Java stored procedure from your PL/SQL to get the info you need.
As for how to write that, you'll need to dig up the Oracle documentation for your version.
Dave Tolls wrote:Assuming this "Java Object" is a serialised instance of your DVO then you are going to need to write some Java code to convert that back to a Java object and then pick out the data you want.
I don't know what state Java in Oracle is in, but that would be the place to do it and call that Java stored procedure from your PL/SQL to get the info you need.
As for how to write that, you'll need to dig up the Oracle documentation for your version.
Mike London wrote:Did you do some searches online for code that's already written for this?
For example:
https://docs.oracle.com/javase/tutorial/jdbc/basics/blob.html
http://www.java2s.com/Code/Java/Database-SQL-JDBC/GetBLOBdatafromresultset.htm
Please post the code you have so far so we can help you.
-- mike
Dave Tolls wrote:When you say "in Oracle procedure", do you mean you want to handle this in PL/SQL?