Consultor Eletrônico



Kbase P138315: Sending binary data via ESB to ABL program which defines the parameter for the data as RAW = garbled
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/30/2008
Status: Verified

SYMPTOM(s):

ABL program receives message via ESB Adapter

Data being passed in the message is binary data

Data is received in the ABL program as a RAW

Data appears to be garbled

FACT(s) (Environment):

OpenEdge 10.1x
All Supported Operating Systems

CAUSE:

Sending binary data using ESB and the data was not BASE64 encoded

FIX:

All data that comes across Sonic ESB must come across inside XML. As such, binary data (or data that you do not wish to have manipulated in any fashion) must be BASE64 encoded prior to being sent across the ESB. When the ESB sees BASE64 encoded data and sees that the ABL program has defined the input parameter for the BASE64 encoded data as RAW it will automatically decode the BASE64 data and place it, unmodified, into the RAW variable.