[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Convert base64 encoded pdf encapsulated into PDF file

Posted on 2010-11-16
2
Medium Priority
?
2,629 Views
Last Modified: 2012-05-10
Hello experts,

This may be in the wrong group, but I have an HL7 message that contains "base64 encoded pdf encapsulated in the message".  I have attached the sample below.  

Are there any programs that can convert the binary data into PDF, or any scripts anyone has come across that might help?

Thanks!
MSH|^~\&|OPHNO|LUMDD|HO|SOTE|20101110090954||ORU^R01|20101110090954|P|2.1||||||
PID|1||04541020150383||Doe^John^A|||||||||||||123456||||||||||
PV1|||||
OBR|1|8838497|41400764||||20070814181404|||||||||||||||20100106130744|||P||||||||||||
OBX|1|HD|EVENT_ECHO^CardioDoc Rest Echo||JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyhlbi1VUykgL1N0cnVjdFRyZWVSb290IDE4IDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4+Pg0KZW5kb2JqDQoyIDAgb2JqDQo8PC9UeXBlL1BhZ2VzL0NvdW50IDIvS2lkc1sgMyAwIFIgMTUgMCBSXSA+Pg0KZW5kb2JqDQozIDAgb2JqDQo8PC9UeXBlL1BhZ2UvUGFyZW50IDIgMCBSL1Jlc291cmNlczw8L0ZvbnQ8PC9GMSA1IDAgUi9GMiA3IDAgUi9GMyA5IDAgUi9GNCAxMSAwIFIvRjUgMTMgMCBSPj4vUHJvY1NldFsvUERGL1RleHQvSW1hZ2VCL0ltYWdlQy9JbWFnZUldID4+L01lZGlhQm94WyAwIDAgNjEyIDc5Ml0gL0NvbnRlbnRzIDQgMCBSL0dyb3VwPDwvVHlwZS9Hcm91cC9TL1RyYW5zcGFyZW5jeS9DUy9EZXZpY2VSR0I+Pi9UYWJzL1MvU3RydWN0UGFyZW50cyAwPj4NCmVuZG9iag0KNCAwIG9iag0KPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCA5MTk4Pj4NCnN0cmVhbQ0KeJytXW2PHLeR/i5A/2GAwwEzgXe2ySb7xcgFsCTHlhHZiqQgODj5MFmNpLmsduXdkRH9+2PxpUk2WUVutxBkrd0uVlVXFavqIdndl9/dnU/vDlfnzR//ePnd+Xy4+nB8u/n18s3tp39evvny6Xj58vD+dHM4n25v/vSnzZNnTze/PX4k+Z5v+mbYc7HhvdwLuRH9vu82d8fHj/7+h83N40d1VE/ePH50+We2Gfdjt3nz7vEjtmnU/9iGSbaXw6YX3X4YNm8+Pn4Ef2/2suGbu/fhb69+ePzo1+3fbnYG||||||O||

Open in new window

0
Comment
Question by:robthomas09
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
sandipshah earned 2000 total points
ID: 34148591
Download Notepad++ and install it.

Open Notepad++

Copy / paste the encoded text there

TextFX - TextFX tools there are bunch of options there to convert from base-64.

Or look for something called "uudecode" command line tool and use that tool to generate the .pdf file.

Or post the encoded file as an attachment here and someone will decode it for you.

Ss
0
 

Author Closing Comment

by:robthomas09
ID: 34150238
Thanks for the quick response and help!
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
Will you be ready when the clock on GDPR compliance runs out? Is GDPR even something you need to worry about? Find out more about the upcoming regulation changes and download our comprehensive GDPR checklist today !
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Six Sigma Control Plans

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question