|
I have this code:
Dim xx as image xx = image.fromfile(Fileloc) picturebox.image = xx
And i can't delete the file even though I've loaded it into a picture box. If I add this line:
xx.dispose
the picture box becomes a big red X.
I only want to delete the...
Started by Jonathan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Do that instead :
Dim xx as Image Using str As Stream = File.OpenRead(Fileloc) xx = Image.FromStream(str) End Using picturebox.Image = xx
The file is closed after the image is loaded, so you can delete....
The Image is disposed.
|
|
I have a ready Bitmap image. Now I want to save & delete it. I m doing it like..
FileConnection fconn = (FileConnection)Connector.open("file:///store/home/user/StoredBitmap/"+picIndex+".bmp",Connector.READ_WRITE); if(!fconn.exists()) fconn.create(); OutputStream...
Started by Shreyas on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Take a look at this (write/read/delete)
class Scr extends MainScreen implements FieldChangeListener("Delete file", ButtonField.CONSUME_CLICK); add(mDelete); mDelete.setChangeListener(this); } public 4.7.0.41
& I m saving the image....
|
|
Hi,
I have a small utility that deletes files from folders using .NET's FileInfo.Delete() method. Basically, I can catch an IOException if the file is currently open. This works for all files except for image files (JPG, GIF, BMP, ect.). When these types...
Started by Minh Nguyen on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Whether or not you can delete a file while it is open depends more on the program in which the file and then closes the file (as Notepad for instance), you will be able to delete the file while it is "open.
|
Ask your Facebook Friends
|
Hi All, I am using asp.net C#. I am saving image file in the folder and deleting it.When i am deleteing it gives error "The process cannot access the file 'C:\Inetpub\wwwroot\Admin\Temp\visible_Jul-13-2009_035606.png' because it is being used by another...
Started by Xyz on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
How do you save the image? Have you made sure that you dispose all Image and Stream objects that are used for saving the image? Since both Image and Stream (and StreamWriter ) implement IDisposable that the file is properly....
|
|
I am writing an Image Manager WPF application. I have a ListBox with the following ItemsTemplate:
<Grid x:Name="grid" Width="150" Height="150" Background="{x:Null}"> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition...
Started by Joel Cochran on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I would; <Image Width="Auto" Height="Auto" x:Name="picture" Source="{Binding Path=FullName, Converter("The method or operation....
Thread/dee7cb68-aca3-402b-b159-2de933f933f1/
Sample
Basically you'll have to preload the image using a stream.
|
|
Gotta echo everyone else...Just love this theme....one challenge I'm having...well, a couple.
I'm using the custom background settings and i uploaded an image to the background. The image I uploaded is really a header image and so I'm looking for a way...
Started by malaczarna on
, 12 posts
by 2 people.
Answer Snippets (Read the full thread at arrastheme):
Thanks...found that....that kills the header but what about the background image? I'm desperately is getting rid of the header image that....
Arras>Theme Options>Design
There should be a "Delete Existing" check box after your logo.
|
|
The following works great when going to the objects adminpage and select delete. The problem is that when using multiselect and deleting multiple items at once it doesn't use my delete-override. I've been looking for a solution but haven't found one so...
Started by xintron on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
While not very efficient, you can force your delete....
Something like:
Photo.objects.filter(name='something').delete()
If that's the case, that will not call your custom delete method since it uses the delete method on a queryset.
|
|
I remember seeing a post a while ago listing the image files created by the KT when a book is added and which ones were safe to remove. Anyone know where it is? Or can post the info here? Thanks. Time to clean up my image folder a bit.. Want to be able...
Started by Xennex1170 on
, 12 posts
by 5 people.
Answer Snippets (Read the full thread at mobileread):
With all the ebooks I have registeredQuote....
Thanks.
If you delete EVERY file there, you get
- N3_LIBRARY_LIST.parsed 60 by 90
delete every other image file.
N3_LIBRARY_LIST.parsed 60 by 90
delete every other image file.
|
|
How can i delete image files (ex *.gif) that might be in use, by another process in a directory?
Started by strakastroukas on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This comes from low-level file.
If you can't delete it, you might be able to rename it, but I'm not sure why some locked files can()) End Try
You can't delete it, while another process is using it.
|
|
My ASP.NET application has an image cropping and resizing features. This requires that the uploaded temporary image be deleted. Everything works fine, but when I try to delete an image larger than 80px by 80px I get a "File is locked by other process....
Started by The_AlienCoder on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you create the image this way, it won't be locked:
using (FileStream fs = new FileStream Image.FromStream(ms, false, false); // prevent GDI from holding image file open }
I think you are not disposing the first Image instance ....
|