473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Image File Not getting Deleted (IO Exception)

Hi All,
I am creating an image(.gif) file on server Using ASP and ShotGraph
Third Party Tool, now with the help of this .gif image I am creating
another Thumbnail image in ASP.NET.
Now this newly created Thumbnail is been shown in ASP.NET page in
IFrame, I have delete Button in my ASP.NET page, Now on Click of this
Delete Button i want to delete both the images.
But I am not able to delete that .gif file which is been created by
ASP page using ShotGraph, it gives me IO Exception, it says that "files
is been used by another process".

So how can i delete this file from my ASP.NET code(i am using VB.NET as
code base).

Please help me out.

Thanks in Advance

Manoj Singh.

Jun 1 '06 #1
1 1054
ASP.Net process is holding lock on the file. Or this ShowGraph is holding
lock on it. If you are using System.IO classes to read write files then make
sure that you call "Close" method on them to release the locks.
"Aryan" <ma*********@gmail.com> wrote in message
news:11*********************@f6g2000cwb.googlegrou ps.com...
Hi All,
I am creating an image(.gif) file on server Using ASP and ShotGraph
Third Party Tool, now with the help of this .gif image I am creating
another Thumbnail image in ASP.NET.
Now this newly created Thumbnail is been shown in ASP.NET page in
IFrame, I have delete Button in my ASP.NET page, Now on Click of this
Delete Button i want to delete both the images.
But I am not able to delete that .gif file which is been created by
ASP page using ShotGraph, it gives me IO Exception, it says that "files
is been used by another process".

So how can i delete this file from my ASP.NET code(i am using VB.NET as
code base).

Please help me out.

Thanks in Advance

Manoj Singh.

Jun 1 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Kiran | last post by:
Hi, I have program, which opens file at the startup and logs error messages to the file, file handle is closed at the end of the program. However if file is deleted in-between, program do not...
1
by: sympatico | last post by:
Hi, I am trying to compare 2 images to check if they are exactly identical (in terms of data), I thought this would be quicker than analysing pixels of the images. I have found lots of examples...
3
by: Scott | last post by:
Hello, I am running into a problem with my code and can't seem to figure out the solution. I know it has to do with the pciture box control and unloading the image inthe picture box but I can't...
5
by: Aryan | last post by:
Hi All, I am creating an image(.gif) file on server Using ASP and ShotGraph Third Party Tool, now with the help of this .gif image I am creating another Thumbnail image in ASP.NET. Now this newly...
0
by: Waqas.L.Khan | last post by:
Hi guys, I have a problem when trying to create an image file. Basically my code takes any file and gets it's system icon using SHGetFileInfo and then saves the file either by converting it into...
4
by: FrankMeng | last post by:
When I tried to load 2GB tiff file, I got an "out of memory" error. I have 512MB memory, but I set virtual memory to 5GB. Is it possible to cut the big tiff file into several sub-images without...
2
by: amritranjan | last post by:
This is my Jsp code for image upload in database: -----------Upload.jsp---------------- <html> <head> <title>Account Details </title> </head> <body bgproperties="fixed" bgcolor="#CCFFFF">...
0
by: hnpatel | last post by:
hello friends, i m making application in vb.NET. i m using MY SQL 5.0 and vs 2005 for this application. Now I want to save image file in sql database. i m using blob datatype of image field. i...
2
by: =?Utf-8?B?SmVmZlAtPg==?= | last post by:
I want to retrieve an image file (TIF) convert it to a bmp file and enable sizing. I know how to do the converting & sizing part, and store any atributes to file location in the webconfig, what...
3
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.