I trying to find function in PHP that can output the binary data.
The binary data is Not any image, text, audio data. It just some plain binary stuffs that a program use and process.
What I should put into the header in term of output type.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The generic binary data MIME type is
application/octet-stream.If you have your binary data in a variable, you can simply write it out normally after setting the
Content-Typeheader to such. (E.g.echo)