Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Reading BLOB field from Oracle Database in Sender JDBC adapter

$
0
0

Dear Experts,

 

I am having a requirement to read images from Oracle Database (Sender) to SAP ECC (Receiver).

 

My design would involve:

 

 

Sender JDBC adapter ( Images stored in Oracle Database) -> SAP PI 7.4 -> Inbound ABAP Proxy

 

To read the BLOB field from the JDBC table, I would be using a Stored Procedure with Select statement.

 

I also refered the blog written by Praveen Gujjeti in the blog

http://scn.sap.com/community/pi-and-soa-middleware/blog/2010/03/28/sap-xipi-storing-binaries-images-pdfs-etc-in-the-database-blobs-using-jdbc-adapter but its a scenario which is just the reverse.

 

 

1.Once I call the Stored Procedure, can I store the BLOB field containing Hexadecimal String directly to ABAP table?

 

 

2.If not, should I create a Message Mapping UDF for the the BLOB field with the below code to convert HexadecimalString to Binary Array?

 

 

public static byte[] hexStringToByteArray(String s) { 

            int len = s.length(); 

            byte[] data = new byte[len / 2]; 

            for (int i = 0; i < len; i += 2) { 

                        data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) 

                                                                                     + Character.digit(s.charAt(i+1), 16)); 

            } 

            return data; 

 

3. If the above scenario populates the ABAP table , would an ABAP inbound proxy would be able to work? If not , please suggest the best solution?

 

Quick guidance would be appreciated.

 

Regards..


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>