Deleting the image from folder

Posted by Saritha.rajeshkumar under C# on 6/25/2011 | Points: 10 | Views : 3821 | Status : [Member] | Replies : 2
hi,

iam uploading the image it is saving in database and folder when iam deleting its deleted from database but not in folder.

i want to delete the image from folder as well as in database.




Responses

Posted by: SheoNarayan on: 6/25/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
To delete the image from the database, you will need to delete the record using "DELETE" sql statement.

To delete the image from the folder, use File system objects in C#, read this article http://www.dotnetfunda.com/articles/article548-common-operation-with-files-and-folders-in-aspnet-.aspx to know how to work with file system objects.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Saritha.rajeshkumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vforvijay on: 6/25/2011 [Member] Starter | Points: 25

Up
0
Down
hi...Try this link i hope this helpful to you
http://vbdotnetaddict.blogspot.com/2011/06/how-to-store-imageurl-in-database-and.html

Saritha.rajeshkumar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response