I have stored an image on mongodb, like so:
{
thumb: Binary('very long string', 0);
}
Then I save this in localStorage and it looks like this:
{
thumb: {
data: [105, 86, 66, 79, 82, 119, 48, 75, 71, 103, 111, 65, 65, 65, 65, 78, 83, 85, 104, 69, 85,…]
type: "Buffer"
}
}
How do I use that info in my react component so that my image gets displayed on the screen?