Hi, Im a newbie and still exploring the endless range of VB.NET 2010... I am using VB.Net, does anyone out there who can suggest a code (best)in storing a image to ACCESS (.mdb)?
Requirments:
1. Best data type to handle this data "in VB"
2. Best data type to handle this data "ACCES" (ofcourse the one with the
smallest file size since im concern that this type of data engulfs large
amounts of its storage)
3. Of course the sample code in VB, I used the following code in setting the
connection:
Imports System.Data.OleDb
Public Class dbs
Public Shared Function Connect() As OleDbConnection
Dim db As New OleDbConnection
db.ConnectionString = "PROVIDER = Microsoft.Jet.OLEDB.4.0;" _
& "DATA SOURCE = " & Application.StartupPath &
"\Database\Vault.mdb"
Return db
End Function
End Class
And I use the following code at any time to connect and open to the database
Imports System.Data.OleDb
Public Class name
Private db As OleDbConnection
db = dbs.Connect
db.Open()
db.Close()
End Class
I would appreciate all the help you give at me guys, chow!