Communication between Website and windows application using HTTPPost

Mar 16 2009 4:30 AM

Hi ,


I m using  window application  for sending request to the web application(website) via HTTP post method while the web application needs to send an acknowledgment to the window application by sending some file as an attachment(file can be in any format)


I m using Response.TransmitFile(filename) to transfer the file from web to windows application but i m unable to see the file at windows side in the response object;


At windows application side i m using

  Stream responseStream = responce.GetResponseStream();          

  StreamReader readerStream = new StreamReader(responseStream,Encoding.Unicode );


My query is how to confirm that the  file is being transferred and how to save the file from the response object .


Answers (2)