toBinData method in Enterprise Server

I am trying to set up an integration to take a document I have subscribed to and using the toBinData method store it in a database.

You can access the triggering event for an intelligent component via the “transaction” identifier which is global to any step in the component. You would get your BrokerEvent like this in your custom code step.

BrokerEvent evt = transaction.getTriggerEvent();

Hope this helps!

Steve

BrokerEvent evt = transaction.getTriggerEvent();
byte myData = evt.toBinData();

Now you can take myData and do whatever you want with it.