Click here to Skip to main content
15,890,946 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My aim is to create a software that sniff the documents(contains text and image)

so i use ibm generic printer drivers that redirect output to my c# program using(RedMon)

i can read text data by using below code

C#
Stream inputStream = Console.OpenStandardInput();


           byte[] bytes = new byte[120000];
           // richTextBox1.AppendText("To decode, type or paste the UTF7 encoded string and press enter:");
           //richTextBox1.AppendText("(Example: \"M+APw-nchen ist wundervoll\")");
           int outputLength = inputStream.Read(bytes, 0, 120000);
           char[] chars = Encoding.UTF7.GetChars(bytes, 0, outputLength);

           // Console.WriteLine(new string(chars));
          // richTextBox1.AppendText(new string(chars));
           txtEncodeData.Text = new string(chars);


My question is how can i read a standard input stream containing text and image ?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900