You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Read File/Download File Button in VBCS Page

Accepted answer
352
Views
9
Comments

Summary:

I have to make a download file button in my VBCS page. I wrote one integration which brings the binary content of the file in the response body. But when I call this integration/endpoint in VBCS so it doesn't bring the same response. Am I doing it wrong?

Content (required):

This is sample response in OIC:

Endpoint response in VBCS ;


I am using this action to get the file and javascript to make it a download link;


JS function mapping;

JS Function:

 PageModule.prototype.downloadFile = function (data, mimeType, filename) {


    const blob = new Blob([data], {


    type: mimeType


    });


    // IE/Edge

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!