Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello.....,
I am working on project in this project image will be saved.
my question is that how to update existing image from database in C#.
plz help me...........
Posted
Comments
Jignesh Khant 5-Jun-13 4:40am    
Save the image in a folder in your project and in database store its path, while updating update the path in database.
Jαved 5-Jun-13 7:43am    
Are you storing image in database or path of the image?

If you are storing the Image in Database then you will have to-

1) Get the image in a local variable before updating the Image.
2) Check if the image is changed? if yes then insert that image in database as you insert
while inserting record or else give your local variable as parameter.


Or if you are storing path of the image then just as insert statement give path of the image.

If any problem persist let me know.
 
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