I'm building an website that allows users to upload/download/delete/manage files in a database.
For clarification, the web application uploads files to a database, NOT the file system. This is because of server constraints and I have no control over it.
I use a filestream to convert the file into a blob and then stick it in the database. What I'd like to know is:
Is it possible to get the progress of a filestream for large files? See how much has been streamed so far or set a timer to update that value?
My code is as follows:
Dim fs As Stream = upload1.PostedFile.InputStream
Dim br As New BinaryReader(fs)
Dim bytes as Byte() = br.ReadBytes(fs.Length)
Dim length As Integer = fs.Length
Then I add "bytes" as a parameter to my Stored Procedure and run the query. What could I add to this to maybe get the status of the filestream?
I hope this is clear, if not I can clarify.
Thanks!