I am using Push Alerts for flight plan filed. I have register the AlertEndPoint and it returned value 1 which signifies success.
Also I set the alerts for 4 aircraft’s but I didn’t received any response from FlightAware.
My application is ASP.NET application.I have written simple code as of now to check the response but my text file is empty.
Please help me as I need to go live as soon as possible.
Code :
//Using Request.SaveAs
string path = Server.MapPath("~/TextFile.txt");
Request.SaveAs(path, true);
//Using Request.InputStream
Stream stream = Request.InputStream;
byte] bytes = new byte[stream.Length];
stream.Position = 0;
stream.Read(bytes, 0, (int)stream.Length);
string data = Encoding.ASCII.GetString(bytes); // this is your string
//Inserting "data" in database
Please reply asap.
Thanks
Danny