Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

how to store and retrieve image path from database using c# .net windows application?

I want to store only image path in database, i don't want to store image in database.
It should be varchar datatype of image path,
It should not be image datatype for image.

Please help me.
Thanks in Advance.

Ankit Agarwal
Software Engineer
Posted
Comments
Vinay Mistry 21-Aug-14 2:41am    
If you have fixed path for images then you can save only image name. Save image name when you are storing image on predefined location.
Ashi0891 21-Aug-14 2:43am    
Have you done something similar to this ever? I can help by providing code for this in website application asp.net c#. Will you be able to apply it in your project with few changes?
[no name] 21-Aug-14 2:44am    
How will be do?
Vinay Mistry 21-Aug-14 2:52am    
Have you tried code?

Check these links they relate to your question. I have not done any project in windows application so don't know much about it.
how-to-save-image-into-folder-in-c.html[^]
how-to-save-image-path-in-database-using-my-sql-c-sharp/[^]

and this is a similar form:
picture box image save in folder using C# windows application[^]

Lemme know if it works :)
 
Share this answer
 
 
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