Author: Subhakanta | Posted on: 5/18/2009 12:55:57 AM | Views : 293

hi,
could someone help me to my following code of image control to store in database?
my problem is i store image into database in binary format.so below is code which working fine.
Dim imageBytes(fileUpload1.PostedFile.InputStream.Length) As Byte
  FileUpload1.PostedFile.InputStream.Read(imageBytes, 0, imageBytes.Length)
  com.Parameters.AddWithValue(":IEMIMAGE", imageBytes)
 
but now i use DAL,BLL and BO for database work.when i try to insert image into database i face problem.could some one help me to solved it out?
my code is below.
           Dim myPackage As New Package
            myPackage.PackageID = txtPkgid.Text.Trim() + 1
            myPackage.Packagename = txtPkgName.T ...

Go to the complete details ...