Hi All,
how do we convert Document Attachment from Posted Sales Invoice to become Base64?
I just cant find any blob file from Document Attachment table
Please advise
Thanks.
You need to save it as PDF with an InStream (or OutStream, I can't remember which one) and then you have the CodeUnit TempBlod, and in this CU a method Stream2BASE64, or anything lkie that. Sorry for not been more accurate, but right now I'm with mi tablet and I don't have AL to be more explict.
Hi @JJMc thanks for the reply.
by the way do you have any example?
what i confuse it.. how do we save it as pdf, since there is no blob file in Sales Invoice Header or Document Attachment table
Answers
by the way do you have any example?
what i confuse it.. how do we save it as pdf, since there is no blob file in Sales Invoice Header or Document Attachment table
https://community.dynamics.com/business/f/dynamics-365-business-central-forum/370200/converting-outstream-object-to-base64-string-in-wave-2
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/