 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Peter Tickler Guest
|
Posted: Mon Apr 16, 2007 2:35 pm Post subject: Downloading from Intranet |
|
|
We have recently updated our webserver (running Windows 2000 server) with several Windows Security updates, and this stopped users (all running Windows XP) from downloading files from the intranet which runs on that server. I presume this is some permissions issue. Has anyone come across it, or can suggest a fix?
The code is:
try
PtempStream := TmemoryStream.create;
PrecordStrings.SaveToStream(PtempStream);
Poutstream := TfileStream.create(Pfilename, fmCreate);
PtempStream.SaveToStream(PoutStream);
Poutstream.Position := 0;
Response.SetCustomHeader('Content-Disposition','filename=' + ExtractFilename(Pfilename));
Response.contentType := 'text/csv';
Response.ContentStream := PoutStream;
PtempStream.free;
except
on E : Exception do
Response.Content := '<html><body><center>Unable to create file ' + Pfilename + ' - contact IT now!<br><br></center></body></html>';
end;
It always throws up an exception |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|