0

Good night I have a problem with this

imagecreatefromstring('blob:https://myweb.com/1475db94-d450-44c7-a02f-c06e9fe46a6a');

error output

Message: 'imagecreatefromstring(): Data is not in a recognized format

1 Answer 1

1
  1. blob isn't any kind of protocol PHP handles (see http://php.net/manual/wrappers.php).

  2. imagecreatefromstring() expects a string of binary data, not any kind of URI.

I think you need

$uri = 'https://myweb.com/1475db94-d450-44c7-a02f-c06e9fe46a6a';
$image = imagecreatefromstring(file_get_contents($uri));
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.