web stats
Mirth Community - View Single Post - Using Correct Java Sytax in Mirth via Javascript
View Single Post
  #1  
Old 05-05-2015, 10:34 PM
dre4967 dre4967 is offline
OBX.2 Kenobi
 
Join Date: Mar 2011
Posts: 64
dre4967 is on a distinguished road
Default Using Correct Java Sytax in Mirth via Javascript

I'm using a custom library called aspose.words and I running into some trouble making sure I user the correct java classes and javascript syntax in Mirth to properly using Library via Mirth.

I need to know how to translate byte[] buffer and ByteArrayInputStream in Mirth, see snippet of code in Java below.

Mirth Version 3.2


Code:
// The document is stored in byte form in the FileContent column.
    // Retrieve these bytes of the first matching record to a new buffer.
    byte[] buffer = resultSet.getBytes("FileContent");

    // Wrap the bytes from the buffer into a new ByteArrayInputStream object.
    ByteArrayInputStream newStream = new ByteArrayInputStream(buffer);
__________________
Webservice to the end, Mirth
Reply With Quote