cancel
Showing results for 
Search instead for 
Did you mean: 

how to download files from URL to a folder using SAP Cloud Integration

varun_kasireddy
Explorer
0 Kudos
359

Hi Everyone.

I have a requirement to retrieve the images from Concur. When I make the API call, it returns the URL of the pdf image which is valid for 15 mins. I need to store this to a folder for further processing.

As a POC, When I call this URL using request reply and send it to a mail, I am receiving white blank pdf attachments.Can you please advise ?

An update: When I get response after calling the URL, I have applied MIME Multipart encoder and If I take that base64 string and use online tool(https://base64.guru/converter/decode/pdf)  to decode it to PDF, it looks good.

How do I extract the base64 string and decode it to PDF in CPI ?

 

Thanks,
Varun

View Entire Topic
Angshuman
Participant
0 Kudos

Can you try using a Python3 operator for the conversion?

Find the sample blog: Convert Base64 to PDF in Python | Examples | Python | Developers | Base64