Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

Download zip file using OIC integration

edited Feb 4, 2022 4:40PM in Visual Builder 2 comments

Summary:

Download zip file using OIC integration

Able to download a csv file not no way to get a zip file.

Attached detail with screenshots in separate .doc file

Content (required):


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):


/*

  Copyright (c) 2018, Oracle and/or its affiliates.

  The Universal Permissive License (UPL), Version 1.0

*/

define([], function() {

  'use strict';


  var PageModule = function PageModule() {};


          // https://community.oracle.com/customerconnect/discussion/504375/how-to-download-file-form-sftp-using-vbcs

  PageModule.prototype.download = function(fileName, specFileContent) {

          var element = document.createElement('a');

          // This works with csv.

          element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(specFileContent));

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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