not able to delete image
-
Hi on click on save button: I uploaded 4 images in temp folder in application and used in attachment while sending mail from temp folder. because on live server it was not possible to recognize from file upload control. now after finishing email sending process I want to delete these all images but while deleting by coding exception is coming like "this file is being used by another process". so how can I end process that is responsible to hold these images. thanks
You get the best out of others when you give the best of yourself.
-
Hi on click on save button: I uploaded 4 images in temp folder in application and used in attachment while sending mail from temp folder. because on live server it was not possible to recognize from file upload control. now after finishing email sending process I want to delete these all images but while deleting by coding exception is coming like "this file is being used by another process". so how can I end process that is responsible to hold these images. thanks
You get the best out of others when you give the best of yourself.
trilokharry wrote:
so how can I end process that is responsible to hold these images.
Could you post youe code snippet where you do this operation... It would help people to locate where the problem is.
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
trilokharry wrote:
so how can I end process that is responsible to hold these images.
Could you post youe code snippet where you do this operation... It would help people to locate where the problem is.
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
{ //save button event SendMail();//sending mail with attachment Delete();//deliting images }
You get the best out of others when you give the best of yourself.
-
{ //save button event SendMail();//sending mail with attachment Delete();//deliting images }
You get the best out of others when you give the best of yourself.
trilokharry wrote:
SendMail();//sending mail with attachment Delete();//deliting images
This is just a function call. Would you mind posting the actual function.
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
{ //save button event SendMail();//sending mail with attachment Delete();//deliting images }
You get the best out of others when you give the best of yourself.
trilokharry wrote:
SendMail();//sending mail with attachment Delete();//deliting images
I'm sorry, but this is hilarious. Despite your inability to post the actual code, I have a guess. You try to delete right away, instead of in response to a message that mail was sent, are you sending asynchronously ? I think the images are still in use because the mail is still sending.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Hi on click on save button: I uploaded 4 images in temp folder in application and used in attachment while sending mail from temp folder. because on live server it was not possible to recognize from file upload control. now after finishing email sending process I want to delete these all images but while deleting by coding exception is coming like "this file is being used by another process". so how can I end process that is responsible to hold these images. thanks
You get the best out of others when you give the best of yourself.
hi, you cant delete image untill youe mail is not sent. praveen.