file - How do you read binary data in C# .NET and then convert it to a string? -


As opposed to using StreamReader / Filestream I want to read binary data from files And let's say that data in a text box

is not clear what you are actually trying to achieve here:
  • Read the random file and chain of hex values Display as (Bin in Visual Studio or any other binary file viewer Mr. file footage was similar) covering the indifference of North Jeff M.
  • Read and write your own objects using binary serialization Check the serialization watchthrough on MSDN - and read on Binterformer Objects.
  • Reading any one such binary format (such as JPEG, PNG, Zip, PDF). In this case, you should know the file structure (you can often get file format documentation) and use BinaryReader to read individual sections of the file. It is easy to find existing libraries for most common file formats, which allow such files to be read in a more solid way. The basic usage model of MSDN article is also on binary reader.

Comments