Namespace: Consultingwerk.Framework.Server.FileDownload
Interface 
IDownloadFileService Copy to Clipboard
Parent classes:
Inherits: Ccs.Common.IService
Implemented by: Consultingwerk.Framework.Server.FileDownload.DownloadFileService




Top Method Summary
Options Name Purpose
MEMPTR GetFileContent (character) Returns the content of the file to be downloaded as a MEMPTR. This single method serves both the Desktop (AppServer) and the Web (REST) entry point of the DownloadFileBusinessTask


Method Detail
Top

MEMPTR GetFileContent (character)

Purpose: Returns the content of the file to be downloaded as a MEMPTR.
This single method serves both the Desktop (AppServer) and the
Web (REST) entry point of the DownloadFileBusinessTask
Notes: The caller (DownloadFileBusinessTask) takes ownership of the
returned MEMPTR and is responsible for releasing it
(set-size (...) = 0).
Implementations are expected to validate the requested file name
and enforce any applicable authorization. The reference
implementation rejects absolute paths (IHttp400Error), resolves
the relative file name against a configured list of folders and
raises an IHttp404Error when the file cannot be found.

Parameters:
pcFileName CHARACTER
The relative name of the file to download
Returns MEMPTR
A MEMPTR holding the raw file content


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       01.06.2026 09:10:21