Image to string with java script
I'm learning JavaScript programming and I created a logic so that the user can change their profile picture, but for some reason, whenever I refresh the page, the new image disappears.
I discovered that this happens because localStorage can't store images, so I need to convert the image into a URL so that it can be saved.
I have no idea how to do this! Someone to explain it to me?