473,395 Members | 1,527 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,395 software developers and data experts.

Cannot save a loaded image -- Access denied Error

HI
I have a VB.NET application in which my Image (from a picturebox) is opened by the user in another application like MSPaint or Photoshop or whatever he chooses. The image does open there.But after making changes, the user cannot save the image since it throws an error : "Access denied.File is in use by another process". What could be the workaround for this? Any little help would be highly appreciated since this is very urgent. Thanks everybody in advance

Nov 20 '05 #1
1 1870
Hi,

If you dont load an image from a filestream it locks the image.

Dim img As Image

Dim fs As New System.IO.FileStream("C:\camera.bmp", IO.FileMode.Open)

img = Image.FromStream(fs)

PictureBox1.Image = img

fs.Close()

Ken

-------------------

"SonyMan" <an*******@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
HI,
I have a VB.NET application in which my Image (from a picturebox) is
opened by the user in another application like MSPaint or Photoshop or
whatever he chooses. The image does open there.But after making changes,
the user cannot save the image since it throws an error : "Access
denied.File is in use by another process". What could be the workaround
for this? Any little help would be highly appreciated since this is very
urgent. Thanks everybody in advance.


Nov 20 '05 #2

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

Similar topics

4
by: Andras Gilicz | last post by:
Hi VB fans I'm working on a relatively large project in VB6 with about a dozen forms, including graphs, labels, text boxes, etc. The software itself is actually a flow simulator with more or...
6
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
1
by: Tony | last post by:
Hi, I have a VB program which will access (using CallByName function) the JavaScript in a page using IE6. It works fine if no proxy is set in IE6 (Tools -> Internet Options -> Connections -> LAN...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
0
by: Noko | last post by:
i am writing following code to save XML docuemnt to a location: XmlDoc.Load(Request); and then process the xml file Finally Save the XML file: XmlDoc.Save (Server.Mappath("XmlFile.xml"));
1
by: brenny | last post by:
Hello I want to save a image to specified path as a jpg format. But I'm getting some error messages. Codes are shown below ; path ="C:\\image.jpg"; FileStream fs = new...
1
by: joserobenator | last post by:
All right. I'v been the last 24h looking everywhere for a solution: -- Description: An error occurred during the processing of a configuration file required to service this request. Please...
2
by: KC-Mass | last post by:
I have a form that is used to ID and then load Excel files into Access. I use labels on the form to record which file was last loaded. That was accomplished with a simple lblFileLoaded =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.