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!
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!