web stats
Using Correct Java Sytax in Mirth via Javascript - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Prev Previous Post   Next Post Next
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

// 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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 09:04 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation