Hi -
I'm building an application that needs to use a web server like a file system. Specifically, the ideal solution would be:
- A server side component that would allow, via HTTP, opening (locking), reading, writing, seeking and truncating one file. I need to be able to lock multiple files simultaneously. I need this to run on any of the standard web hosts out there, so it must run on top of IIS or Apache, using server side scripting (Web Services, PHP, etc)
- A client interface to this that I hand it a URI, and it opens and acts just like a file. My client app is in .NET, so ideally the client API would implement a FileSteam subclass.
The reason I need this is that I have rather large files that will be sitting on a web host. I need to read parts of the files (using seek), truncate, and append to the end. Downloading and uploading the entire file is too bandwidth intensive. Also, I need to lock multiple files simultaneously.
My questions:
- Does such a thing exist?
- If not, why not? Does this not seem like a very useful service?
It seems like such a component would allow me to use any web hosting company out there as a network file server. That seems useful, no?
Thanks for your help!
Eric