I need to implement some Azure storage queue functions into an existing VB.Net windows forms app. Everything was working great until I ran into a Base64 encoding issue, finding this message in my Azure function log:
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.
I found this post on how to do this in C#, but I can't figure out how to do it in VB.NET.
This is valid syntax - at least it's accepted without error by the interpreter in Visual Studio, anyway:
Dim qc As QueueClient = New QueueClient(connstr, "licensecreationqueue", New QueueClientOptions)
But I need to implement Base64 encoding as per this bit of code from that other post:
_queue = new QueueClient(connectionString, queueName, new QueueClientOptions
{
MessageEncoding = QueueMessageEncoding.Base64
});
I just can't figure out the syntax on how to incorporate the QueueMessageEncoding.Base64
into the constructor, and none of the online converters (Telerik et al.) are able to resolve it.