hello I have try to convert captured image by webcam into binary format and want to save it in sql server nut its getting error like
"Additional information: Could not find a part of the path 'C:\VisiterManagment\VisiterManagment\CroppedImage\'."
below I tried code to convert image to binary.
- public static byte[] ImageToBinary(string _imgpath)
- {
- FileStream fS = new FileStream(_imgpath, FileMode.Open, FileAccess.ReadWrite);
- byte[] b = new byte[fS.Length];
- fS.Read(b, 0, (int)fS.Length);
- fS.Close();
- return b;
- }

Bhavesh VankarPosted Oct 26, 2020, 6:31 AM
Rajanikant HawaldarPosted Oct 26, 2020, 6:22 AM
Rajanikant HawaldarPosted Oct 26, 2020, 6:08 AM
Bhavesh VankarPosted Oct 26, 2020, 5:35 AM
Bhavesh VankarPosted Oct 26, 2020, 5:32 AM
Rajanikant HawaldarPosted Oct 26, 2020, 5:10 AM
Bhavesh VankarPosted Oct 26, 2020, 5:01 AM
Rajanikant HawaldarPosted Oct 26, 2020, 4:55 AM
Rajanikant HawaldarPosted Oct 26, 2020, 4:46 AM