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

CloudUpload Base 64 Error

1 Answer 24 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Joe asked on 15 Oct 2019, 04:20 PM

Hi Guys,


Using the upload control for Azure Blob Storage.

Using ASP.NET AJAX radCloudUpload v 2019 R3.  I select a file to upload then get the following exception:


[FormatException: Invalid length for a Base-64 char array or string.]
   System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength) +12707288
   System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) +130
   System.Convert.FromBase64String(String s) +42
   Microsoft.WindowsAzure.Storage.Auth.StorageCredentials.UpdateKey(String keyValue, String keyName) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\Common\Auth\StorageCredentials.cs:259
   Microsoft.WindowsAzure.Storage.Auth.StorageCredentials..ctor(String accountName, String keyValue, String keyName) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\Common\Auth\StorageCredentials.cs:184
   Telerik.Web.UI.AzureProvider.EnsureWebClient() +100
   Telerik.Web.UI.CloudUploadHandler.EnsureWorker() +681
   Telerik.Web.UI.CloudUploadHandler.ProcessRequest(HttpContext context) +182
   Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context) +92
   Telerik.Web.UI.HandlerRouter.ProcessHandler(HttpContext context) +54
   Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context) +39
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +188
   System.Web.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0() +26
   System.Web.StepInvoker.Invoke(Action executionStep) +101
   System.Web.<>c__DisplayClass4_0.<Invoke>b__0() +22
   Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.OnExecuteRequestStep(HttpContextBase context, Action step) +64
   System.Web.<>c__DisplayClass284_0.<OnExecuteRequestStep>b__0(Action nextStepAction) +54
   System.Web.StepInvoker.Invoke(Action executionStep) +85
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +9980649
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


Any help appreciated.






1 Answer, 1 is accepted

Sort by
Telerik team
answered on 16 Oct 2019, 12:13 PM

Hi Joe,

We were reported about similar issues in the past, which were usually related to not proper access key of the Azure configuration. Can you make sure that the access key you are using is proper and that it is added no more than one time?

Another reason for a similar behavior could be if the uploaded file contains some non-English characters. There was problem with Azure, because it rejected some of the files, which contain special characters like Cyrillic, Chinese or even Holland letters.

The easiest way to verify that would be to try to upload file into the Azure blob via the Azure portal or CloudBerry Azure Explorer.

If this is the case then you will have to rename the file name before upload it.

Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question