Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Upload > Using RadProgressArea with Azure Blob.UploadFromStream()

Not answered Using RadProgressArea with Azure Blob.UploadFromStream()

Feed from this thread
  • Randy avatar

    Posted on Jan 19, 2012 (permalink)

    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!

    Reply

  • Peter Filipov Peter Filipov admin's avatar

    Posted on Jan 23, 2012 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Upload > Using RadProgressArea with Azure Blob.UploadFromStream()
Related resources for "Using RadProgressArea with Azure Blob.UploadFromStream()"

ASP.NET Upload Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]