Docs Menu
API Developer Guide / middleware / pub / service / returnFile

Service: returnFile

This service returns a file with specified content and metadata.

Input Parameter:

Name Type Description
fileData: Byte Array The content of the file as a byte array.
fileName: String The name of the file.
inputStream: Object An input stream.
body: String The content body.
contentType: String The content type of the file.
isDownloadable: Boolean Indicates whether the file is downloadable.

Output Parameter:

Name Type Description
*multipart: Object Contains multipart data.