Web Connection
PDF viewed inside of the browser.
Hello, it seems that the code of your samples didn't work anymore in modern browser
loHeader = CREATEOBJECT("wwHTTPHeader")
loHeader.SetProtocol()
loHeader.SetContentType("application/pdf")
loHeader.AddHeader("Content-Length",TRANSFORM(LEN(lcPDF)))
loHeader.AddHeader("Accept-Ranges","bytes")
loHeader.AddHeader("Connection","Close")
Response.ContentTypeHeader(loHeader)
Response.Write(lcPDF)
Here is the result ( try with Firefox and Chrome )
Thank's for your help

Obsolete code from old docs... where is this from?
Don't use wwHttpHeader
- all those properties and methods are on the Response object directly.
+++ Rick ---
Tks for you reply
The link in the doc is https://webconnection.west-wind.com/docs/_0lc1chayy.htm
There is also a problem with your online demo
We use this way for years but now it download the pdf rather than display it in the browser