Skip to Main Content

Oracle Database Express Edition (XE)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PDF from REST API

User_I6RGMNov 17 2021

Hi,
I have a node.js api that sends a pdf file from a post http request. This api is hosted in a linux vm over an IP which it's a http url, not https. I'm trying to send the request from an apex page in javascript using fetch, but i'm getting a mixed content error because it's a http request in a https page. What I need is page that send the request, take the pdf and a button in this page to download the pdf. How can I make this? I also tried to make a http request in a procedure, but couldn't make it work, maybe because I'm new to pl/sql. Does someone can help me?
Thanks.

Comments
Post Details
Added on Nov 17 2021
1 comment
444 views