Layer7 API Management

 View Only
  • 1.  Handle the base64 encoded PDF in response in gateway

    Posted Feb 04, 2019 08:58 AM

    We are receiving a xmlpdf response for the request via gateway. response contain a xml version along with pdf in string format. our requirement is to convert the string to pdf format also need to save it to any folder on network. Can CA API gateway can handle this? How?



  • 2.  Re: Handle the base64 encoded PDF in response in gateway

    Broadcom Employee
    Posted Feb 04, 2019 10:32 AM

    Hi

     

    I don't think there is a out of the box solution  to store something in a file but if you are on GW 9.4

    you may can use the java script assertion to do this .

     

    Regards Dirk



  • 3.  Re: Handle the base64 encoded PDF in response in gateway

    Posted Feb 04, 2019 10:52 AM

    We have version 9.0. Is there any other way to achieve it? i saw in one of the post Is API Gateway is feasible to route video, pdf, and HTML 5 page?  but there is no solution.



  • 4.  Re: Handle the base64 encoded PDF in response in gateway

    Broadcom Employee
    Posted Feb 05, 2019 09:33 PM

    The gateway should not access OS directly, I think you can setup a ftp server, and then use Route via ssh2(for sftp) assertion, or Route via ftp assertion to send the payload to ftp server.