cancel
Showing results for 
Search instead for 
Did you mean: 

VenturIQ-Azure Storage Utility - The input is not a valid Base-64

MateuszWojcik
Level 5
Hi,

I tried to use object "VenturIQ-Azure Storage Utility" action  "ListBlobItems" to get a list of items from my Blob containter. When I run action I get the below error message.

Full error message: Internal : Could not execute code stage because exception thrown by code stage: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. 

Has anyone know how to handle this error?

Kind regards

------------------------------
Mateusz Wojcik
RPA Programist
Rockwell Automation
Europe/Warsaw
------------------------------
8 REPLIES 8

ewilson
Staff
Staff
Hi @Mateusz Wojcik,

I dealt with a similar issue just the other day with some Base64-encoded data I was getting from GMail. What I found, in that case, is that the data contained '-' and '_' characters. According to RFC 4648, those are not valid characters for the main Base64 character set. However, when Base64 data is sent across the web the supported characters '+' and '/' cause issues because they are special characters in URLs. So, there's this concept of Base64 web safe characters which amounts to encoding data in Base64 and then replacing any '+' and '/' characters with '-' and '_', respectively.

All that is to say you might want to check your Base64 data to see if it contains any '-' or '_' characters. If it does, replace them with '+' and '/' and then try to decode the data.

Here's some example code:
System.Text.StringBuilder _encodedData = new System.Text.StringBuilder(base64Data);
_encodedData.Replace("-", "+");
_encodedData.Replace("_", "/");

If that doesn't work, I'd suggest reaching out to VenturIQ to see if they can offer some guidance. The support link they posted for that asset is https://venturiq.com/contact-us/

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi Eric,

Thank you for response.
I have made propose changes.
It seems that characters "&", "=", and "%" are also invalid.
Do you know how to replace them ?

Kind regards

------------------------------
Mateusz Wojcik
RPA Programist
Rockwell Automation
Europe/Warsaw
------------------------------

@Mateusz Wojcik,

Those are typical URL characters. Is your data part of a query string on a URL?

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hey,

May data are part as SAS Credentials.

Kind regards

------------------------------
Mateusz Wojcik
RPA Programist
Rockwell Automation
Europe/Warsaw
------------------------------

Ok, so those characters do encode, under Base64, to different characters. Are you encoding/decoding the credential yourself, or is it provided to you already encoded?

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi Eric, Thank you for your response. I do already have information of what I need. It is written in error message. I do not need to check it in config file. What I do not know is how to solve the problem. I connot find this version System.Memory.dll.

------------------------------
Mateusz Wojcik
RPA Programist
Rockwell Automation
Europe/Warsaw
------------------------------

Hi @Mateusz Wojcik,

So you're getting an error about a missing DLL? Does the error tell you what version is expected?

Cheers,



------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi @ewilson

Yes I am getting error about expected version​,

Kind regards

------------------------------
Mateusz Wojcik
RPA Programist
Rockwell Automation
Europe/Warsaw
------------------------------