Hi Rebecca,
Try with below UDF code and use UDF for target root node (or) BLOB field on target. Once you receive the proxy data (payload + image attachment), handle attachment accordingly. Payload has no significance as per your snap shot and I hope you are interested only with image data in ECC R/3
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));
}
try
{
GlobalContainer globalContainer = container.getGlobalContainer(); OutputAttachments outputAttachments = globalContainer.getOutputAttachments(); Attachment newopAttachment = outputAttachments.create("ImageFileName.jpg", data); outputAttachments.setAttachment(newopAttachment);
}
catch (Exception e)
{ e.printStackTrace(); //throw new StreamTransformationException(e.toString());
}
return "";
//BR,
Praveen Gujjeti
Message was edited by: Praveen Gujjeti