Click here to Skip to main content
15,914,500 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi there, am creating a database using Visual Studio 2010 and now my problem is i can't add an image on my Database table. please assist guyz its unrgent.

Regards
Mr Nkosi
Posted
Comments
thatraja 21-Oct-13 6:25am    
Tried Google with "how to add image in database?"
Member 10348973 21-Oct-13 6:33am    
i did, but still it does not really give me a straight anwser.

1 solution

Image types are either BLOB or VarBinary(Max). You can't directly insert values from VS using Table edit. You can do by writing Insert queries or with custom code. Have a look into the below links.


http://stackoverflow.com/questions/15544527/need-help-query-to-insert-an-image-into-a-table-in-sql-developer3-0[^]

http://stackoverflow.com/questions/416881/insert-picture-into-sql-server-2005-image-field-using-only-sql[^]

PS: Google is your friend, Never forget !
 
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