Modules
Objects/Functions
SuiteScript 2.0
{ServerResponse}.writeFile({file: {file.File*},isInline: {boolean}})
N/https Module
ServerResponse.writeFile()
Method Description:
Writes a file to the response.
Returns:
void
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/https Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=ServerResponse.writeFile(options)
Example:
// Code Example 1
// Add additional code
//...
serverResponse.writeFile({
file: myFileObj,
isInline: true
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4567633001.html