PHP schreibe binäre Antwort

In PHP gibt es eine Möglichkeit, Binärdaten in den Antwortstrom zu schreiben,
wie das Äquivalent von (c # asp)

System.IO.BinaryWriter Binary = new System.IO.BinaryWriter(Response.OutputStream);
Binary.Write((System.Int32)1);//01000000
Binary.Write((System.Int32)1020);//FC030000
Binary.Close();



Ich würde dann gerne die Antwort in einer C # -Anwendung lesen können

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();

Antworten auf die Frage(4)

Ihre Antwort auf die Frage