Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am uploading a large video file(>300MB) to the Windows azure. By using the normal fileUpload it is at times throwing time out error. So I thought of using AsyncUpload in telerik function.

The solution I can attain is by saving the file in temporary folder and then use the file in uploading to Azure.

But I wanted to know whether I could save the streams from the AsyncUpload to directly to the AzureBlob.

Thanks & Regards,
Mohan Prasath
Posted
Comments
The_Inventor 27-Sep-13 23:42pm    
From the Help on .NET Framework 4.5:(Azure uses .NET Framework)

When using the task-based asynchronous pattern, a T:System.AggregateException may be thrown if an exception occurs while waiting on the completion of the operation. This exception may occur on the client or services.

The problem lays within the continua of the file stream. Take 'Hulu' for example, they are an AV Streaming File Service, they use temporary buffer memory, within the RAM, or on the HDD, and it is FIFO. Some video ads are stored in the temp directory of the IE browser, for quicker, smoother access and replay.

Task-Based Asynchronous Pattern


The task-based asynchronous pattern is the preferred way to implement asynchronous operations because it is the easiest and most straight forward. To use this method simply implement your service operation and specify a return type of Task'<'T'>', where T is the type returned by the logical operation. For example in C#:

C#
public class SampleService:ISampleService 
{ 
   // ...
   public async Task<string> SampleMethodTaskAsync(string msg) 
   { 
      return Task<string>.Factory.StartNew(() => 
      { 
         return msg; 
      }); 
   }
   // ...
}


The SampleMethodTaskAsync operation returns Task '<'string'>' because the logical operation returns a string. For more information about the task-based asynchronous pattern, see The Task-Based Asynchronous Pattern.

In my case I am unfamiliar with "AsyncUpload in telerik function" but I'm sure it will be a bandwidth issue at some point.
 
Share this answer
 
v2
There is one more control called RadCloudUpload which has the same functionality as yours you can try that

http://www.telerik.com/help/aspnet-ajax/cloud-upload-overview.html[^]
 
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