Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

base64 to image c#

public static Image LoadBase64(string base64)
{
	byte[] bytes = Convert.FromBase64String(base64);
    Image image;
    using (MemoryStream ms = new MemoryStream(bytes))
    {
        image = Image.FromStream(ms);
    }
    return image;
}
 
PREVIOUS NEXT
Tagged: #image
ADD COMMENT
Topic
Name
3+5 =