how do i want to save a picture in accsess database?
ramezan1356
0
Newbie Poster
Recommended Answers
Jump to Post'You can create Varbinary(Max) datatype for image column 'Below is code to store Image Imports System.Data.SqlClient Dim myfilelocation As String = "C:\myPictures\myimage.jpg" Dim conn As New SqlConnection("Data Source= .\sqlexpress; Initial Catalog=Temp;Integrated Security =True") Dim cmd As New SqlCommand("Insert Into ImageTable(ImageFile,CustomerID) Values (@ImageData,@CustomerID)", conn) Dim param As New …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.