Stream define default name - WeOnlyDo Discussion board

Stream define default name (wodWebServer / wodWebServer.NET)

by Yves, Thursday, January 13, 2022, 13:45 (262 days ago) @ wodSupport

The file is located on the local server where our service (with your component) is running.
example C:\xxxx\Solinf.pdf


Open as a filestream and sent to the client

Dim fs As New System.IO.FileStream(a, System.IO.FileMode.Open)
Args.Response.Stream = fs

On the client side the file is always downloaded as download.pdf (in Microsoft Edge) or pdf.pdf in Firefox


Complete thread: