I am trying to return a binary file from a rest service request in the body of the file. Is this possible?
<cffunction
httpmethod = "GET"
name="fetchLineWorkFileData"
access="remote"
output="false"
restpath="fetch_line_work_file"
returnFormat = "binary"
returntype = "binary"
>
<cfheader name ="Content-Type" value = "application/octet-stream">
<cfreturn FileReadBinary("#application.data_drive#company_#session.companyid#/project/#file_name#")>
</cffunction>