Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Resolution:
Description:
===========
How to create a byte array for passing arguments to TCP.Advanced.readIntoByteArray function or other function which uses a byte array as a parameter?
Environment:
===========
TIBCO BusinessEvents 5.1.1
All Operating Systems
Resolution:
========
There are many ways to create a byte array in BusinessEvents. The following are three general ways to achieve this:
1). Object bytes = String.getBytes("12345678901234567890", "UTF-8");
2). File.readFileAsBytes() catalog function API.
3). Use the Java Custom Function. Define a byte array as a return value such as return new byte[1024*1000].