I am using httpresponse.Transmitfile to download files. If I, in the file download dialog, choose to save in a different folder than the suggested one, the download rate drops down to 10 - 20 kb. If I cancel, or always choose to download in the same folder, then transfer rate are 200 kb and more. Here are my code :
procedure TDefault.LastNedBilde(strURL: string);  
var  
 Outfil: FileInfo;  
begin  
   Outfil:= FileInfo.Create(Server.MapPath(strUrl) );  
   response.Clear();  
   response.ClearContent();  
   response.ClearHeaders();  
   response.Buffer := True;  
   response.ContentType :='image/tiff';  
   response.AddHeader('Content-Disposition',  
                     'attachment; filename=' + filename;');  
   response.AddHeader('Content-Length', Outfil.Length.ToString());  
   response.Transmitfile(strUrl,0,Outfil.Length);  
   response.Flush();  
   response.&End;  
end;
This is written in RadStudio 2007, Delphi for .Net. Have anybody experienced anything like this ? This is not a problem in Opera or Firefox, only internet explorer.