I need to convert image to binary and get result in text box .
i using the following function :
Image found in path D:/person.jpg
- public static byte[] ImageToBinary(string _path)
- {
- FileStream fS = new FileStream(_path, FileMode.Open, FileAccess.Read);
- byte[] b = new byte[fS.Length];
- fS.Read(b, 0, (int)fS.Length);
- fS.Close();
- return b;
- }
I work in c# windows form c#

Amit Kumar SinghRank #562 · 4.3K reputationPosted Dec 30, 2016, 5:40 PM EST
Midhun TpRank #388 · 6.5K reputationPosted Dec 30, 2016, 6:39 PM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 30, 2016, 7:21 PM EST
Khaja MoizuddinRank #270 · 9.4K reputationPosted Dec 31, 2016, 12:13 AM EST
ahmed salahRank #2,612 · 534 reputationPosted Dec 31, 2016, 1:31 AM EST
I need to convert byte array to binary string 0 or 1 and after that recieve value of string in text box
so that how i make that .