Using RadProgressArea with Azure Blob.UploadFromStream()

Thread is closed for posting
2 posts, 0 answers
  1. Randy
    Randy avatar
    12 posts
    Member since:
    Jan 2012

    Posted 19 Jan 2012 Link to this post

    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, .....)
    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)
    End Try
    End Sub

    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!
  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 23 Jan 2012 Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top