Hi!
We are using IIS on some of our web servers (that's a must, sorry). We
use the code which had been posted before to put a PDF file directly to
the webstream. The actual code is put at the end of this letter.
The problem we occur is that before every LF a CR is inserted (which is
the DOS convention). But we teste to direct the output to annother file
(using a named output stream). That output file has the same size as the
original size, so I think the algorithm is correct. The same code is
running perfectly on an AIX box.
Setting a link to the created PDF file and clicking on the link works
perfect.
Does anybody know about that behavior and how to change it. Or are my
thoughts wrong? Any help welcome.
Configuration: WS 2.1, cgiip.exe, NT 4.0 with SP 5, IIS 4
Klaus Erichsen
<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
def var vfileline as raw no-undo.
output-content-type ("application/pdf":U).
input stream inputfile from value(fOut) binary no-echo no-map
no-convert.
repeat:
length(vfileline) = 1024.
import stream inputfile unformatted vfileline.
put {&WEBSTREAM} control vfileline.
end.
length(vfileline) = 0.
input stream inputfile close.
[/code]
We are using IIS on some of our web servers (that's a must, sorry). We
use the code which had been posted before to put a PDF file directly to
the webstream. The actual code is put at the end of this letter.
The problem we occur is that before every LF a CR is inserted (which is
the DOS convention). But we teste to direct the output to annother file
(using a named output stream). That output file has the same size as the
original size, so I think the algorithm is correct. The same code is
running perfectly on an AIX box.
Setting a link to the created PDF file and clicking on the link works
perfect.
Does anybody know about that behavior and how to change it. Or are my
thoughts wrong? Any help welcome.
Configuration: WS 2.1, cgiip.exe, NT 4.0 with SP 5, IIS 4
Klaus Erichsen
<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
def var vfileline as raw no-undo.
output-content-type ("application/pdf":U).
input stream inputfile from value(fOut) binary no-echo no-map
no-convert.
repeat:
length(vfileline) = 1024.
import stream inputfile unformatted vfileline.
put {&WEBSTREAM} control vfileline.
end.
length(vfileline) = 0.
input stream inputfile close.
[/code]