Lucee rest service return binary data

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>

Use cfcontent

Do you have an example of working in rest service? I fiddle around with. thanks

Solution

           <cffile

                action="readbinary"

                file="#application.data_drive#company_#session.companyid#/project/#file_name#"

                variable="binfile"

                />

            <cfheader

                name="content-length"

                value="#ArrayLen( binfile )#"

                />

            <cfheader

                name="content-type"

                value="application/dwg"

                />

            <cfcontent

                type="application/dwg"

                variable="#binfile#"

                />