Solved

Convert base64 encoded pdf encapsulated into PDF file

Posted on 2010-11-16
2
2,248 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
2 Comments
 
LVL 5

Accepted Solution

by:
sandipshah earned 500 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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 …

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now