See Binary Stream from Unicode String - ADODB.Stream arguments wrong for history.
So now that I have my download-a-file code working, I have another question:
After the user has made his selections for what file he wants (think of it as a report with criteria) I would like the file download to begin immediately upon clicking a button. I know how to launch a new page which, when I change the header type and flush the buffer vanishes and turns into a file download, but I'd like to skip the "new empty browser window" step if possible.
Any ideas?
So now that I have my download-a-file code working, I have another question:
After the user has made his selections for what file he wants (think of it as a report with criteria) I would like the file download to begin immediately upon clicking a button. I know how to launch a new page which, when I change the header type and flush the buffer vanishes and turns into a file download, but I'd like to skip the "new empty browser window" step if possible.
Any ideas?