![]() ![]() You could use the ImageConverter class anycodings_c# which implements the ConvertFrom() anycodings_c# method. Usage Image myImage = LoadBase64(base64string) MemoryStream ms = new MemoryStream(bytes) Public static Image LoadBase64(string base64)īyte bytes = Convert.FromBase64String(base64) Having said that, you can onvert your anycodings_c# base64 string of a image/octet-stream anycodings_c# MIME type file into a bytes array and anycodings_c# then use a MemoryStream to compose an anycodings_c# image from it. You'll only be able to convert anycodings_c# base64 strings of image/octet-stream anycodings_c# MIME type files. The MIME type is anycodings_c# application/octet-stream for a binary anycodings_c# file. Your base64 string contains an encoded anycodings_c# binary file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |