To use utl_file.put_raw you can use a TOracleQuery with a corresponding PL/SQL Block:
Code:
begin
utl_file.put_raw(:file_id, :raw_data);
end;
The :file_id variable is an integer holding the id of the file that was previously opened. The :raw_data is a string that holds the raw data in hexadeximal format.