Click here to Skip to main content
15,898,607 members
Please Sign up or sign in to vote.
1.11/5 (2 votes)
See more:
Hello. Good Day.

I am new to C#.
I would like to upload a very large file to our server using C#.
Is there any way on I can break down into pieces (my file to be uploaded) then make into one when all of the pieces are already uploaded? It is because of the connection when sending large files.

Or how can I possibly do it uploading large file and the connection is limited only using C#?

Please Help.
Thank you.
Posted
Comments
Zoltán Zörgő 3-Jul-13 1:41am    
It depends. But do we speak about http traffic or other kind of "upload"? Is on the client a bare web browser or a thicker clinet? If a web browser, is it HTML5 (websocket) enabled?
berrymaria 3-Jul-13 1:46am    
Let's say I'll be uploading an Excel file with the size of 40MB. As I upload it, there's a tendency that the connection will be lost.
Zoltán Zörgő 3-Jul-13 1:54am    
But how? What are the technologies around? Please answer to my questions!
Zoltán Zörgő 3-Jul-13 2:21am    
If IIS is involved, there is a request limit and an execution timeout too. Both can lead to connection break.
berrymaria 3-Jul-13 2:28am    
Yes, there is a limit.

1 solution

i think its better do that requirement with wcf service,

convert that file into byte array, pass it to wcf service , in wcf write code to store in db,

for low connection means need to optimize the code to get better performance
 
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