Re: Huge files over 500 MB? (General questions)
By the way, when I say as it loads I mean *after* the entire Request file is uploaded and saved to disk, I could have something like:
Dim dataBuffer As Byte()
Dim FileReader As New BinaryReader(e.user.Request.Uploads(0).getFileAsStream)
dataBuffer = BinaryReader.ReadBytes(1000000)
My.Computer.FileSystem.WriteAllBytes( CustomerFile.Zip , dataBuffer, True)
If you did this with the .NET version of WodWebServer, then I would be willing to pay a reasonable price to upgrade to the .NET version, since I don't know if BinaryReaders exist outside of that.
O .. I am using VB.NET 2008, so I do have threading. I use the ActiveX.
Personally for me, AsyncSave wouldn't solve the problem. Best would be something to let me stream the file from wodWebServer as it loads, similar to a BinaryReader. (Ex: I could then send it as a response to another client as well as a file at the same time. Even tho the whole file might not be saved, since they are downloading slowly anyways, it would be fine.)
Also, note sure if it is possible, but could there be support for 2GB+ files like with WodFTPServer? [I have that too.]
I asked about programming environment to see if you have threading capabilities, so perhaps parsing can be done in separate thread.
But I'm also considering to provide AsyncSave method, that would take the file and export it to real file in separate thread, so main process doesn't freeze. It will still take 15-20 seconds, but your app would be responsive in the meantime.
Kreso
Complete thread:
- Huge files over 500 MB? - Simon, 2010-03-15, 01:55
- Re: Huge files over 500 MB? - Simon, 2010-03-15, 01:57
- Re: Huge files over 500 MB? - cyman, 2010-03-15, 07:42
- Re: Huge files over 500 MB? - wodDamir, 2010-03-15, 09:50
- Re: Huge files over 500 MB? - cyman, 2010-03-15, 17:02
- Re: Huge files over 500 MB? - wodSupport, 2010-03-15, 17:51
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 00:14
- Re: Huge files over 500 MB? - wodSupport, 2010-03-17, 00:23
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 00:37
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 00:49
- Re: Huge files over 500 MB? - wodSupport, 2010-03-17, 00:52
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 01:17
- Re: Huge files over 500 MB? - wodSupport, 2010-03-17, 01:19
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 02:51
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 03:02
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 03:14
- Re: Huge files over 500 MB? - wodSupport, 2010-03-19, 13:21
- Re: Huge files over 500 MB? - cyman, 2010-03-19, 21:39
- Re: Huge files over 500 MB? - wodSupport, 2010-03-19, 21:40
- Re: Huge files over 500 MB? - wodSupport, 2010-03-19, 21:40
- Re: Huge files over 500 MB? - cyman, 2010-03-19, 22:09
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 04:38
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 09:08
- Re: Huge files over 500 MB? - wodSupport, 2010-03-21, 11:24
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 20:21
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 20:23
- Re: Huge files over 500 MB? - wodDamir, 2010-03-21, 20:59
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 21:10
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 23:46
- Re: Huge files over 500 MB? - wodDamir, 2010-03-22, 00:06
- Re: Huge files over 500 MB? - cyman, 2010-03-22, 02:45
- Re: Huge files over 500 MB? - wodDamir, 2010-03-22, 00:06
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 23:46
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 21:10
- Re: Huge files over 500 MB? - wodDamir, 2010-03-21, 20:59
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 20:23
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 20:21
- Re: Huge files over 500 MB? - wodSupport, 2010-03-21, 11:24
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 09:08
- Re: Huge files over 500 MB? - cyman, 2010-03-21, 04:38
- Re: Huge files over 500 MB? - cyman, 2010-03-19, 22:09
- Re: Huge files over 500 MB? - wodSupport, 2010-03-19, 21:40
- Re: Huge files over 500 MB? - wodSupport, 2010-03-19, 21:40
- Re: Huge files over 500 MB? - cyman, 2010-03-19, 21:39
- Re: Huge files over 500 MB? - wodSupport, 2010-03-19, 13:21
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 03:14
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 03:02
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 02:51
- Re: Huge files over 500 MB? - wodSupport, 2010-03-17, 01:19
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 01:17
- Re: Huge files over 500 MB? - wodSupport, 2010-03-17, 00:52
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 00:49
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 00:37
- Re: Huge files over 500 MB? - wodSupport, 2010-03-17, 00:23
- Re: Huge files over 500 MB? - cyman, 2010-03-17, 00:14
- Re: Huge files over 500 MB? - wodSupport, 2010-03-15, 17:51
- Re: Huge files over 500 MB? - cyman, 2010-03-15, 17:02
- Re: Huge files over 500 MB? - wodDamir, 2010-03-15, 09:50
- Re: Huge files over 500 MB? - cyman, 2010-03-15, 07:42
- Re: Huge files over 500 MB? - Simon, 2010-03-15, 01:57