In javascript I've managed to get the browser to generate a blob image as a url like this 'blob:http://localhost:8000/46f8dec5-203e-442c-b27a-89d1758381ae' and you can see the image
How do I save this data as an image on the server because when I use the code below it generates an image file but the file is corrupted and the image can't display.
file_put_contents($file, 'blob:http://localhost:8000/46f8dec5-203e-442c-b27a-89d1758381ae');
I've tried using just the url like this http://localhost:8000/46f8dec5-203e-442c-b27a-89d1758381ae and just the binary data 46f8dec5-203e-442c-b27a-89d1758381ae