Can anybody tell me that how to convert a image path into bytes to store in database in asp.net.please help me out.
A:
I think what you are looking is?
byte[] myByte = new byte[fupImage.PostedFile.ContentLength];
Stream imgStream = fupImage.PostedFile.InputStream;
imgStream.Read(myByte, 0, fupImage.PostedFile.ContentLength);
Muhammad Akhtar
2010-10-04 08:26:48