New version of DownStream available

I broke the existing version...but I added a ton of useful stuff!  I refactored the two main classes a bit to make them more standard and useful.

Download the source code and demo

The majority of the new methods are overloads to work with getting files out of the database and saving back to the database.  Here are some of the changes:

  • Exists - checks to see if filename is already in the database
  • Copy - copies a file that is already in the database over to a new named file
  • Open overload to return a Stream object for a given filename (the other Open method requires a Response object)
  • Save overloaded a few more time taking in various other useful things

All changes have to do with using the utility OUTSIDE of the original intent of uploading/downloading.  You can use it for that, but now you can use it to work with the files that are in the database.

A few of the enhancements I am working on:

  • Move - will take in a file path (for a file on the file system) and move it to the database (might also edit the Copy method to check for existence of the file and not assume a database copy)
  • DbFileStream - a wrapper class that will allow me to open a file from the database, write to it and close it (right now I have to pull a stream out, edit it and then save the stream back).
  • Tie in to the shell as an enhanced folder??

posted on Tuesday, May 11, 2004 5:54 AM

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Url
Comment   
Please enter the following code into the box below to stop spammers

  
Enter Code Here *