HttpPostedFile file = fileImage.PostedFile; byte[] bytPDF = new byte[file.ContentLength]; Stream objStream; objStream = file.InputStream; objStream.Read(bytPDF , 0, file.ContentLength); string fileName = file.FileName.Trim();
Convert you image as byte[] and send the content to database of type image
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)