#Samaara-file-c

1 messages ยท Page 1 of 1 (latest)

heavy garden
devout forge
#

I currently have the Base64String! That's what I am trying to upload

heavy garden
#

Apologies for the wait. I got caught up in other threads. Can you log the contents of the variable to console and confirm it looks like it should? The error seems to indicate that you haven't converted it correctly

gloomy pewter
#

@devout forge I have unarchived your thread

devout forge
#

Thank you! I will log the base64 variable now

heavy garden
#

Hi there ๐Ÿ‘‹ taking a look now

bold stream
#

We don't really support uploading from memory I think

devout forge
#

Thanks!

bold stream
#

My recommendation would be to create a file on your filesystem first and then upload that

devout forge
#

Is there any other option? I can try that, I was just trying to avoid creating the file!

bold stream
#

not that I know of. I know we wanted to support upload from memory but I don't think we support it on most libraries

devout forge
#

Ok, thank you!

bold stream
#

Okay I asked someone who maintains the dotnet library and they said new FileCreateOptions { File = new MemoryStream(Convert.FromBase64String("BASE 64")) }; might work can you try that?

#

I just tried and it works though I had to add Purpose too