Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question