I want to insert in a table an (image , id, Code)
but I don't know how to do this .
What I am looking for is how to insert an image not url.
I want to insert in a table an (image , id, Code)
but I don't know how to do this .
What I am looking for is how to insert an image not url.
you can try like this
CREATE TABLE ImageTable
(
Id int,
Name varchar(50) ,
Photo varbinary(max)
)
INSERT INTO ImageTable (Id, Name, Photo)
SELECT 1, 'test', BulkColumn
FROM Openrowset( Bulk 'C:\test.jpg', Single_Blob) as image