Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I was wondering if anyone has attempted anything similar to this.

Basic I have large files for uploading 100MB - 200MB.

What I want to do is split these files into smaller chunks and upload them.

Then on the server rebuild the file into its original.

If anyone has any suggestions or a tutorial on how to achieve this it would be greatly appreciated.

Regards
Mc--Gann
Posted

Take a look at the file splitter program here File Splitter Utility in C# - WinForms[^]. If this the client is a trusted source then you share a utility to split the files and let them upload smaller chunks.

you can use the same utility program at the server to join them.

This might not work if the client is not a trusted.
 
Share this answer
 
You can have a look at this article that show you a technique for creating a buffered upload

Dime Buffered Upload[^]

However, pay attention to one of the questions in the forum 'Can I use this in a web application'

'the simple answer is no, and you need to understand that a web browser will never offer advanced file IO to the client file system. have a read of the other comments if you need more explanation.'

In a browser application, when you choose to upload a file, you only get a choice of where the file is located and then it is sent as an HTTP Post to the server. As explained in that answer, you won't have the opportunity to split a file and send in chunks.

However, you could implement some sort of client service that the browser communicates with, then have the service perform the buffered upload. I think there are some flash components that let you do something along these lines?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900