A
A
akakiy_akakievich2014-03-14 22:28:19
PHP
akakiy_akakievich, 2014-03-14 22:28:19

How to transfer image to android from php code?

Need to pass image from php to android app. Tell me, please, which option is better: transfer the image itself from php to android or transfer only its url, and then from andoid go through the url to the server and get the image?
If it is more correct to transfer the image itself, then it is better to convert it to base64 and then transfer it to the application?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel K, 2014-03-14
@akakiy_akakievich

I would pass just a link, since it's not worth it to load php once again by sending an image when it can be cached and just give a link to it.
In the event of a connection failure, it is easier to download the image to the client using the link.
Android client and php should not once again be tormented by encrypting / decrypting a picture for receiving / transmitting.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question