Click here to Skip to main content
15,893,644 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
How to insert image into sql server using vb.net by command
Posted

Answering this question again and again makes little sense, as it was asked too many times. Just see here:
http://www.codeproject.com/search.aspx?doctypeid=5&q=SQL+%28images+OR+image%29[^].

—SA
 
Share this answer
 
Comments
Joezer BH 4-Feb-13 1:26am    
5+
Sergey Alexandrovich Kryukov 4-Feb-13 1:52am    
Thank you, Edo.
—SA
hi dear,

Image is stored in sql as bytes

so create field with using datatype of image in sql server table
and pass byte array from .net in parameter of sql command with using stored procedure.
 
Share this answer
 
try this
http://www.aspdotnet-suresh.com/2011/01/how-to-insert-images-into-database-and.html[^]

this tutorial is in C# so use http://converter.telerik.com/[^] to convert code in vb.

if any problem let me know
 
Share this answer
 
The answer is BLOB.

Use datatype byte array in the DB to hold the file, and in the code, reading a file into byte array is fairly SIMPLE[^]

Cheers,
Edo
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900