You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While creating an item with this SDK and reading it back works (I tried it), I cannot create an item with waz-storage or winazurestorage.py and read it from Java.
I made a small test case in this repo to demonstrate the problem using Ruby and Java. Here's the output I get:
Running test...
Sending message...
Waiting 1 second...
Exception in thread "main" java.lang.IllegalArgumentException: The String is not
a valid Base64-encoded string.
at com.microsoft.windowsazure.services.core.storage.utils.Base64.decode(Base64.java:84)
at com.microsoft.windowsazure.services.queue.client.CloudQueueMessage.getMessageContentAsString(CloudQueueMessage.java:179)
at Receiver.main(Receiver.java:16)
The text was updated successfully, but these errors were encountered:
In fact, it has to do with the way other languages encode base64 strings. In Python, at least, base64 strings have new lines in them. Apparently, this SDK's base64 decoder freaks out at new lines.
According to the Wikipedia article, it's normal for base64-ed strings to have new lines in them.
While creating an item with this SDK and reading it back works (I tried it), I cannot create an item with waz-storage or winazurestorage.py and read it from Java.
I made a small test case in this repo to demonstrate the problem using Ruby and Java. Here's the output I get:
The text was updated successfully, but these errors were encountered: