C/C++: is it possible to pass binary data through the console? [duplicate]
This question already has answers here : What is the simplest way to write to stdout in binary mode? (2 answers) Closed 4 years ago . I would like to know if it is possible that an utility yields binary data (i.e. graphical images) and outputs them through IO console, while another application, instructed about the nature of those data and informed of the number of the incoming bytes, is able to read it from IO console. Yes, it is possible. While it's true that often stdin / stdout are meant to be text there are many programs that are designed to get binary input or write binary output from