I have an image which is of type varbinary
in db.
In BO layer, it is declared as Byte[]
.
public Byte[] Image
{
get { return p_image; }
set { p_image = value; }
}
To assign its value in BO layer, I used
objBO.Image = FileUploadControl.FileContent
Its throws the error
Connot convert System.IO.Stream to Byte[]
Can anybody help in choosing the parameter of FileUploadControl
that can be converted to Byte[]
?