A
A
aopil2020-12-03 01:20:38
PHP
aopil, 2020-12-03 01:20:38

How to transfer an image?

$data = $this->Imagick->getImageBlob();
$size = $this->Imagick->getImageLength();


Next, I try to write this data to an array, but in the end there is emptiness ...
I don’t really want to save the image and read from the file.

The goal is to transfer the image to another server via CURL submission.

Perhaps somehow you need to encode and send in this format through json_encode? I tried, nothing happened.

Tell me how to write translate from imagick into a variable in order to send it to another server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
irishmann, 2020-12-03
@aopil

base64

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question