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

Uploading and Reading a Text File in Visual Builder

edited May 9, 2019 7:59AM in Visual Builder 7 comments

Summary

I have gone through the blog u have provided,but I'm not returning the content in the text area.

Content

I have build the function as below and invoking this function by using file picker actionListner.

Actually My requirement is to  get the encrypted string, I have gone through this blog .

https://blogs.oracle.com/groundside/uploading-and-reading-a-text-file-in-visual-builder

But I'm unable to get the text.

I tried the below code snippet

PageModule.prototype.getFile = function(event) {
    var file  = null;
    var binaryString = null;
    var base64String = null;
      var filesArr = event.detail.files;
     var reader = new FileReader();
    for (var i = 0; i < filesArr.length; i++) {

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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