Saving native types like a string or an integer to the database is relatively simple. But for saving files or images, you need to convert them first to an array of byte. Here’s a snippet of how to get the blob. 

Private Function StreamFile(ByVal filename As String) As Byte()

  Dim ImageData As Byte() = Nothing


    Dim fs As New FileStream(filename, FileMode.Open, FileAccess.Read)

    ImageData = New Byte(fs.Length – 1) {}

    fs.Read(ImageData, 0, System.Convert.ToInt32(fs.Length))


  Catch ex As Exception

    ‘ Do nothing

  End Try

  Return ImageData

End Function