Let's say I have this URL for the image:
How can I get an array of bytes of this image?
I edit to add information about what I have tried but it does not work for me:
I've done this:
$filename = 'https://www.nissan-cdn.net/content/dam/Nissan/global/vehicles/gt-r/r35/eulhd/2_minor_change/overview/17TDIeulhd_GTRHelios026.jpg.ximg.l_full_m.smart.jpg';
$url = preg_replace("/ /", "%20", $filename);
$file = fopen($url, "rb");
$contents = fread($file, filesize($url));
fclose($file);
And I get the following error:
Warning: filesize (): stat failed for image direction