Sending Binary Data using HTP package
536323Jan 2 2007 — edited Jan 2 2007Has anyone been successful in using the HTP package and its PUTRAW procedure to send binary data to a browser?
Example code shows basic idea:
create or replace
procedure test_raw as
output VARCHAR2(20);
begin
OWA_UTIL.MIME_HEADER('application/x-gzip', TRUE);
output := 'Hello World!';
HTP.PUTRAW(UTL_RAW.CAST_TO_RAW(output));
HTP.FLUSH;
end test_raw;
I receive an empty file when called from the browser.
What gives?