Author: salman behera | Posted on: 5/22/2009 2:50:03 AM | Views : 253

Hi,
i need to store image into database in binary format.so below is my code which working perfectly.
 Dim imgByte As [Byte]() = Nothing
            If fileUpload1.HasFile Then
                Dim File As HttpPostedFile = fileUpload1.PostedFile
                imgByte = New [Byte](File.ContentLength - 1) {}
                File.InputStream.Read(imgByte, 0, File.ContentLength)
                myPackage.PackageImage = imgByte
            Else
'store default image
End
but problem ...

Go to the complete details ...