web stats
Mirth Community - View Single Post - Converting HL7 message to Base64Binary
View Single Post
Old 09-24-2013, 01:48 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
Join Date: Oct 2010
Posts: 7,117
narupley is on a distinguished road

Originally Posted by cwfowers View Post
So what I want to do is create an HL7 message, and encode it to base64. How do I get the byte array from the HL7 in a transformer?
To convert a string to a byte array:

var byteArray = new java.lang.String(yourStringHere).getBytes(charset);
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote