I want to download an image from an android app. However, in the app I don't know the name of the image.
In a php script, I choose the image file that the app should download randomly and now I have two options:
- I could echo the image file name and the app can then download the file directly
- I could just echo the whole image data
What is the better way? And if it is the first, could you link to a good page on how to download an image? I can upload images easily but the internet is full of different ways on how to download an image, so I don't know which one is the best...