Sending binary PDF from CodeUnit through webservice

asdastyasdasty Member Posts: 26
edited 2014-06-13 in NAV Three Tier
Hi everyone, glad to be here.

I'm currently working on a web app which is based on WebServices from Dynamics NAV 2013 R2. Basic data works great, I don't have any problems. But...

I've created CodeUnit to save Reports as PDF (REPORT.SAVEASPDF method) and now I would like to download them from my ASP .NET MVC application. And this is my question - is it possible to transmit (maybe binary?) PDF file through SOAP service and use whole web service as typical server response?

Comments

  • ppavukppavuk Member Posts: 334
    Yep, read PDF file data to bigtext variable, then encode as base64, send it off and decode on other end.
Sign In or Register to comment.