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#
ahmed salahPosted Dec 31, 2016, 6:31 AM
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 .
Khaja MoizuddinPosted Dec 31, 2016, 5:13 AM
Manas MohapatraPosted Dec 31, 2016, 12:21 AM
Midhun TpPosted Dec 30, 2016, 11:39 PM
Amit Kumar SinghPosted Dec 30, 2016, 10:40 PM