Solved

Convert base64 encoded pdf encapsulated into PDF file

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 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