Question
5
Replies
2662
Views
Cognizant Technology Solutions
Posted: June 21, 2017
Last activity: October 16, 2018
Closed
How to open/download a pdf file from my local machine in PRPC
I have a requirement to open/download a service manual when we click on a link. The service manual (PDF file) is stored in my local machine. Also one of the four pdf file should be opened based on some conditions in PRPC.
***Updated by moderator: Lochan to add Categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Hi Sudhanshu,
You need to do the following n click of the URL:
1. Read the content of the file as base64 encoded and save it on a property say pyNote. This can be done using a simple Java step and shouldn't be a problem if you know the file path
2. Call Code-Pega-PDF.View and pass the byte array obtained in step 1 and the document name