Account


Earned badges

Achievement: Latest Unlocked

Topic Started

This user has not created any forum posts.

Replies Created

Reply to: How to download PDF document in node js

0 votes

Hey Duo,

When I upload that file in AWS that time uploaded file shows password encrypted message.

 

 let package_id = req.params.id;

        console.log(package_id)

        var request = require('request');

        var options = {

            'method': 'GET',

            'url': 'https://sandbox.esignlive.com/api/packages/' + package_id + '/documents/6bdedd15e909947a600/pdf',

            'headers': {

                'Authorization': 'Basic xxxxxx==',

                'Accept': 'application/pdf'

            }

        };
 

        request(options, function (error, response) {

            if (error) throw new Error(error);

            else {

                UploadFile(Buffer.from(response.body, 'utf8'), "TestManish05may.pdf");

            }

        });

 

 

Please suggest me what i am doing wrong.


Attachments

Subscriptions

This user is not subscribed to any release notes.

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.