Does anyone have sample code for converting from binary data to a string in C #?
It sounds like you just need to decode binary data. So you need an encoding (e.g. utf-8 or unicode).
Example:
var textFromBinary = System.Text.Encoding.UTF8.GetString(myBinaryData);
If your binary data is stored in an array byteand you want to convert it to Base64 encoding, you can use the Convert.ToBase64Stringmethod:
byte
Convert.ToBase64String
var base64String = Convert.ToBase64String(yourBinaryDataHere);
Source: https://habr.com/ru/post/1749232/More articles:Duplicate elements when adding XElement to XDocument - c #Disambiguating Named Entities in Java - javaTemplate Operator Linker Error - c ++How to prove the worst number of inversions in the Q (nlogn) heap? - performanceThere is no property with the name "restriction_class_id" defined in the type specified by Role 'phones_extensions' - entity-frameworkAlphanumeric counter - c #Integrate F # into your existing .Net application - architectureВозможно ли это с помощью Sql 2005 CTE? - sqlHow to develop a WPF multi-touch application without a touch screen? - wpfHow to manage sessions in NHibernate unit tests? - nunitAll Articles