Base64String to stream c#
var bytes = Convert.FromBase64String(base64encodedstring);
var contents = new StreamContent(new MemoryStream(bytes));
// Whatever else needs to be done here.
Base64String to stream c#
var bytes = Convert.FromBase64String(base64encodedstring);
var contents = new StreamContent(new MemoryStream(bytes));
// Whatever else needs to be done here.
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us