Answer the question
In order to leave comments, you need to log in
How to properly organize the storage and loading of media content?
In the developed mobile application, the user takes a photo and it is hosted on the server. I save the image to the server through sockets. Saving is carried out in a specific directory.
Next, I had a question, how to upload images in the application. I thought that I could use the Picasso library, but it only downloads via http, and my files are located in the directory and there is no access to them via http, and probably should not be (so that they are not freely available).
Do I understand correctly that there is only one option left, this is the organization of downloading files also via sockets?
Are there other options?
Answer the question
In order to leave comments, you need to log in
Why not through a specialized API like OpenStack Swift or Amazon S3?
(does not mean that Amazon will be hosting, fully compatible with S3)
There is both HTTP and private access.
And ready software on the server.
Ready-made API, no need to break your head:
https://developer.openstack.org/api-ref/object-sto...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question