Is your feature request related to a problem? Please describe.
We have a process that stores binary data in spool files and we would like to use ZOWE Explorer API to download it in a VSCode extension.
Describe the solution you'd like
Support binary download of spool content in ZOWE Explorer extender APIs (at least through z/OSMF).
Describe alternatives you've considered
We have a working mechanism to download the content through FTP (without ZOWE Explorer), but we would like to support the scenario with ZOSMF as well.
Additional context
The parameters of https://github.com/zowe/vscode-extension-for-zowe/blob/main/packages/zowe-explorer-api/src/profiles/ZoweExplorerZosmfApi.ts#L325 do not provide the ability to select binary/text download. It also looks like it is not implemented in the ZOWE SDK for jobs https://github.com/zowe/zowe-cli/blob/master/packages/zosjobs/src/DownloadJobs.ts#L52 . However, ZOSMF itself seems to support this. From the z/OSMF documentation the endpoint /zosmf/restjobs/jobs/{correlator}/files/{nnn}/records accepts a query parameter mode with possible values text/binary/record.
...
Is your feature request related to a problem? Please describe.
We have a process that stores binary data in spool files and we would like to use ZOWE Explorer API to download it in a VSCode extension.
Describe the solution you'd like
Support binary download of spool content in ZOWE Explorer extender APIs (at least through z/OSMF).
Describe alternatives you've considered
We have a working mechanism to download the content through FTP (without ZOWE Explorer), but we would like to support the scenario with ZOSMF as well.
Additional context
The parameters of https://github.com/zowe/vscode-extension-for-zowe/blob/main/packages/zowe-explorer-api/src/profiles/ZoweExplorerZosmfApi.ts#L325 do not provide the ability to select binary/text download. It also looks like it is not implemented in the ZOWE SDK for jobs https://github.com/zowe/zowe-cli/blob/master/packages/zosjobs/src/DownloadJobs.ts#L52 . However, ZOSMF itself seems to support this. From the z/OSMF documentation the endpoint
/zosmf/restjobs/jobs/{correlator}/files/{nnn}/recordsaccepts a query parametermodewith possible valuestext/binary/record....