If you want to read the content from FileUpload. then follow the below :
.aspx :
<asp:fileupload id="FileUploadControl" runat="server" xmlns:asp="#unknown">
.cs :
protected void read_image()
{
if(FileUploadControl.HasFile)
{
Image_Bytes bytes[] = FileUploadControl.FileBytes;
// Then pass the bytes value to your database table through your SQL connection
}
In SQL Server :
CREATE TABLE Image_Bytes
(
Image_ID INT PRIMARY KEY,
Image_Bytes IMAGE
)
Use the type as IMAGE to save the image bytes you get it from .cs page.
Please let me know is this what you are searching for !!!
Happy Coding :)