Problem in viewing image in multi user environment
-
I am developing an application in C#. The application is deployed on 3 machines. The database is at the single machine that is server. Now when i save an image from system 1, it saves to the directory of system 1. When i access the same image from system 2 it gives error. It does not show because it try to pick image from its own disk. I do not want to save the image in database as a blog. I want to store image in directory and want to access from any system where my windows application is deployed. Any suggestion..............
Do good and have good.
-
I am developing an application in C#. The application is deployed on 3 machines. The database is at the single machine that is server. Now when i save an image from system 1, it saves to the directory of system 1. When i access the same image from system 2 it gives error. It does not show because it try to pick image from its own disk. I do not want to save the image in database as a blog. I want to store image in directory and want to access from any system where my windows application is deployed. Any suggestion..............
Do good and have good.
If you read a Bitmap, then copy it to a new one, then Dispose of the original, I think you get rid of the file lock on the original file. other option - make a copy of the image when you want to read it, and delete the copies when they are closed.
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.
-
If you read a Bitmap, then copy it to a new one, then Dispose of the original, I think you get rid of the file lock on the original file. other option - make a copy of the image when you want to read it, and delete the copies when they are closed.
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.
Thanks for your reply. The problem is the file path. How should i read the file from network which doesnot create any rights and permission issues. I want to read the file from the system where it is stored and my exe can be on any system in the LAN.
Do good and have good.
-
Thanks for your reply. The problem is the file path. How should i read the file from network which doesnot create any rights and permission issues. I want to read the file from the system where it is stored and my exe can be on any system in the LAN.
Do good and have good.
Oh. OK, that's another question. Well, one way to do it, would be to have a webservice on the server, and have your application pointed to that. that would sidestep any issues with access to the file paths.
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.
-
Oh. OK, that's another question. Well, one way to do it, would be to have a webservice on the server, and have your application pointed to that. that would sidestep any issues with access to the file paths.
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.
Thanks a lot. I will look for webservice now.
Do good and have good.