Download file directly with AdoDb.Stream

xiaoxiao2021-03-06  51

In the address bar of the browser, enter a URL path of a DOC or XLS or JPG file directly, then the file will be displayed directly in the browser. And in many times we hope to pop up the download prompt directly to let the user download, what should we do? There are two ways here:

1. Set the IIS of your server, give the DOC and other suffixes to map

2, set its contenttype when sending to the client

Detailed description 2