on 09-03-2012 6:01 AM
Hi Experts,
In my reqirement we have to send images like .jpg files from SAP system to Database system through PI. And along with the images we have to send some fields like Emp.No, Emp Name etc.
I got some blogs regarding converting only binary files into hexadecimal and it stores into database in BLOB column. in my case i need to send image file along with fields. Anybody can provide solution to solve this requirement.
Thanks,
Gangadhar
Hi,
You need to use ABAP proxy with attachements approach.
Check Michael's blog: http://scn.sap.com/community/pi-and-soa-middleware/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies...
- Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to convert attachement into payload via mapping (graphical or java)
1. Field payload (XML)
2. convert JPG to base64. check my blog: http://scn.sap.com/community/pi-and-soa-middleware/blog/2010/03/28/sap-xipi-storing-binaries-images-...
you need to use stored procedure for this with structure like below
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_JDBC_INSERT xmlns:ns0="urn:xyz.com/JDBCBLOBDemo">
<STATEMENT_SP>
<storedProcedureName action="EXECUTE">
<table>TESTSP</table>
<field1>Employee Name</field1>
<inputblob type="BLOB">HexDecimalBinaryString</inputblob>
</storedProcedureName>
</STATEMENT_SP>
</ns0:MT_JDBC_INSERT>
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.