DOCUMENTATION NTi

GetSpooledFileData() method

Description

The GetSpooledFileData method is used to retrieve raw data from a specific spool file.
This data, often in AFP (Advanced Function Presentation) format, is extracted from the spool file and returned in the form of an array of bytes.

Syntax

byte[] GetSpooledFileData(SpooledFile spooledFile)

Parameters

Name Type Description
spooledFile SpooledFile A SpooledFile object representing the spool file from which the data is to be retrieved.

Return

Returns an array of bytes (byte[]) representing the raw data from the specified spool file.

Exceptions

No specific exception for this method.

Examples of use

// Retrieving the list of spool files
var spooledFiles = conn.ListSpooledFiles();

// Retrieving data from the first spool file
byte[] spooledFileData = conn.GetSpooledFileData(spooledFiles.First());

References

For more information on the QUSLSPL API, see the official IBM documentation.