Hello,
I would like a stored process to stream a binary file (zip archive containing text files) to _webout.
filename arch ZIP "&path_to_file./myArchive.zip";
data _NULL_;
set sashelp.class;
file arch(class.txt);
put _ALL_;
run;
data _null_;
rc=appsrv_header('Content-type:','application/zip');
rc=appsrv_header('Content-disposition',"attachment; filename=myArchive.zip");
run;
/* Insert missing code here */
proc stream doesn't handle binary streams and a data step with put _INFILE_ won't work either.
Both result in an insufficient authorization error message.
Is there a way to stream binary files in SAS ?
Thanks.