MimeData PDF

1C:Enterprise platform integration capabilities and techniques

#1
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Sep 18, 2012
Company:

Hello everybody!
I've got such a problem...
I make GetLabel request here:

Code
http://api.inpost.opennet.pl/api.asmx?op=GetLabel

and I get reponse:
Code
<Label>
<ParcelID>string</ParcelID>
<MimeFormat>PDF or ZPL or GIF</MimeFormat>
<MimeData>base64Binary</MimeData>
</Label> 

MimeData looks for example like this:
Code
<MimeData>JVBERi0xLjMNCjEgMCBvYmoNCjw8IA0KL0xlbmd0aCAxNDUyDQovRmlsdGVyIC9GbGF0ZURlY29kZQ0KPj4NCnN0cmVhbQ0KWIXFWNtuHDcMfd ....very very long chain of signs...</MimeData> 

I need to write down MimeData as PDF file at my harddisk but I have no idea how to do it. Could you help me?
Thank you in advance for every little answer.
Kris

 
#2
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jan 22, 2015
Company:

Hi, try get BinaryData with:

Code
Base64Value(<String>)

and then write it
Code
.Write(FileName)

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.