Click here to Skip to main content
15,885,818 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
in the name of god

hi everyone

can everyone tell me how can i put a file(like image,video,...) in one table's field?
please describe for me.
thanks in advance
Posted
Comments
Kschuler 23-Apr-14 10:15am    
The keyword that you are looking for here is BLOB which stands for Binary Large Object. If you google for how to use a BLOB you may find more help and/or tutorials.

Hello,

below is the link that provide detailed info about how to save image file, please refer it and let me know if it helps,

Store or Save images in SQL Server
[^]

Thanks,
Hitesh
 
Share this answer
 
The better option is to save the file in a folder in your project and save that path in the database.

OR

Check these links

Link 1

Link 2
 
Share this answer
 
v3
Comments
Mahdi Nejadsahebi 23-Apr-14 12:18pm    
thanks dear friend
but i want to make a portable database.
Sanket Saxena 24-Apr-14 3:02am    
ok i am adding some links in my solution plz check hope it helps you

Mahdi Nejadsahebi 24-Apr-14 6:17am    
thanks dear friend
but i'm working with mfc c++ and they're clr/atl c++.
whould you more help me please?
thanks again

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