Answer the question
In order to leave comments, you need to log in
How to read and output pdf from remote server to console?
I am creating a project in which I need to put the contents of a pdf file from a remote server into a variable, and then output the contents to the console, but the encoding is lost during the output.
The code:
String info;
using (StreamReader reader = new StreamReader("info.txt"))
{
info = reader.ReadToEnd();
}
Console.Write(info);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question