Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Integration > MimeData PDF

Forum

Search UsersRules
MimeData PDF
#1
Active user
Points:: 0
Joined:: Sep 18, 2012

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

Profile
#2
Just came
Points:: 0
Joined:: Jan 22, 2015

Hi, try get BinaryData with:

Code
Base64Value(<String>)

and then write it
Code
.Write(FileName)

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.