Trong php là có một cách để ghi dữ liệu nhị phân vào dòng phản ứng,
như tương đương với (C# asp)
PHP viết phản ứng nhị phân
System.IO.BinaryWriter Binary = new System.IO.BinaryWriter(Response.OutputStream);
Binary.Write((System.Int32)1);//01000000
Binary.Write((System.Int32)1020);//FC030000
Binary.Close();
tôi sẽ sau đó như để có thể đọc phản hồi trong ứng dụng aC#, như
System.Net.HttpWebRequest Request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("URI");
System.IO.BinaryReader Binary = new System.IO.BinaryReader(Request.GetResponse().GetResponseStream());
System.Int32 i = Binary.ReadInt32();//1
i = Binary.ReadInt32();//1020
Binary.Close();
+1 cho câu trả lời đã giúp tôi. Tôi đang thêm những gì làm việc cho tôi dưới đây như một câu trả lời khác. –