Solved

Convert base64 encoded pdf encapsulated into PDF file

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 78
When i run adoquery my application freezes 26 150
This code tracks birthdays 3 59
iSeries email authority 4 22
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Encryption for Business Encryption (https://en.wikipedia.org/wiki/Encryption) ensures the safety of our data when sending emails. In most cases, to read an encrypted email you must enter a secret key that will enable you to decrypt the email. T…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A simple description of email encryption using a secure portal service. This is one of the choices offered by The Email Laundry for email encryption. The other choices are pdf encryption which creates an encrypted pdf of your email and any attachmen…

911 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

22 Experts available now in Live!

Get 1:1 Help Now