ReadFileStream method: File class

Syntax

ReadFileStream(URL,URLID,FileName,URL_ID)

Description

Use the ReadFileStream method to read the file stream from an http(s) URL and store that data into a file in the supported repository.

Parameters

Parameter Description

URL

Specifies the URL from which the stream should be read.

URLID

Specifies the URLID of the existing file repository on the PeopleSoft system where the file needs to be stored.

FileName

Specifies the name of the file that will be stored.

URL_ID

This parameter is optional.

Use the URL_ID parameter if you require any additional parameters for the URLID parameter, such as proxy. The URL string for this parameter can be a dummy value.

Returns

An Integer value indicating the status, where 0 (zero) indicates success and any non-zero value indicates failure.

Errors are written to log file.

Example

&nRetcode = ReadFileStream("https://docs.oracle.com/cd/E87545_01/psft/pdf/pt856tpcl-b052017.pdf", "TESTSFTP", "PeopleBook.pdf");