iam using asp.net 2.0 with c#, i had written the code to upload image to database, but there is a error
Could not find file 'C:\WINDOWS\system32\Sunset.jpg'.i had choosen the image file from desktop, but the error shows like this .I dont understand this
my code is like this
if (FileUpload1.HasFile)
{
FileStream fs = new FileStream(FileUpload1.PostedFile.FileName, FileMode.Open);
byte[] byteimage = new byte[fs.Length];
fs.Read(byteimage, 0, byteimage.Length);
Go to the complete details ...