Answers for "c# convert base 64 to stream"

0

Base64String to stream c#

var bytes = Convert.FromBase64String(base64encodedstring);
var contents = new StreamContent(new MemoryStream(bytes));
// Whatever else needs to be done here.
Posted by: Guest on April-20-2021
0

convert stream to base64 string c#

You can also encode bytes to Base64. How to get this from a stream see here: How to convert an Stream into a byte[] in C#?

Or I think it should be also possible to use the .ToString() method and encode this.
Posted by: Guest on March-12-2021

Browse Popular Code Answers by Language