BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Downloading from Intranet

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
Peter Tickler
Guest





PostPosted: Mon Apr 16, 2007 2:35 pm    Post subject: Downloading from Intranet Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.