This is a migrated thread and some comments may be shown as answers.

Using RadProgressArea with Azure Blob.UploadFromStream()

1 Answer 63 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 19 Jan 2012, 04:45 PM
Hi,
I'm trying to implement the RadProgressArea with the Azure client Blob.UploadFromStream() method. I have two subs i'm using:
1) Button Click event - btnUpload_Click(sender.....), which calls the sub UploadFile(FileName, .....)
e.g.:
Protected Sub btnUpload_Click(sender As Object, e As EventArgs) Handles btnUpload.Click
Dim fileName as String = "file name"
Dim mySourceFilePath String = "file path"
............
UploadFile(mySourceFilePath, fileName)
......
End Sub

 Private Sub UploadFile(ByVal targetFolder As String, ByVal fileName As String)
' Get blob reference...
Dim myBlob As CloudBlob = GLB_blobContainer.GetBlobReference(...
' File stream...
Dim myFileStream As New FileStream(mySourceFilePath, FileMode.Open, FileAccess.Read)
Try
    blob.UploadFromStream(myFileStream)
Catch
..
End Try
End Sub
End


Can you please give me a tip on how to implement the RadProgressArea in this situation, as I am having trouble getting it to work for me?
Thank you very much!

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 23 Jan 2012, 01:48 PM
Hi Randy,

Indeed we haven't tested the RadUpload and RadProgressArea under Azure yet. In standard case, in order for RadProgressArea to appear, you should declare RadProgressManager on the page in the following order:
RadProgressManager, RadProgressArea and RadUpload. When submit the page, if a file is selected, the progress area will appear. No additional logic is needed.
If a small file is selected for upload, the upload is really fast and the progress area shows for less than a second. Please make sure that the uploaded file is big enough.

Regards,
Peter Filipov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Upload (Obsolete)
Asked by
Randy
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or