Solved

Convert base64 encoded pdf encapsulated into PDF file

Posted on 2010-11-16
2
2,482 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 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

Webinar: Security & Encryption in the MySQL world

Join Percona’s Solutions Engineer, Dimitri Vanoverbeke as he presents “Security and Encryption in the MySQL world” on Thursday, July 6, 2017 at 7:00 am PDT / 10:00 am EDT (UTC-7).

Question has a verified solution.

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

If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
There are many Password Managers (PM) out there to choose from. PM's can help with your password habits and routines, but they should not be a crutch you rely on too heavily. I also have an article for company/enterprise PM's.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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 …

705 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