I need to convert image to binary and get result in text box .
Image found in path D:/person.jpg
i using the following function :
public bool[] imageToBinaryArray(System.Drawing.Image imageIn)
{
MemoryStream ms = new MemoryStream();
bool[] arr = new bool[50000000];
int i =0;
imageIn.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
BitArray bitarray = new BitArray(ms.ToArray());
foreach (bool item in bitarray)
{
arr[i] = item;
i++;
}
return arr;
}
How to receive the value returned from function imageToBinaryArray in textbox1 ?