Y
Y
yury_borisov72017-01-11 02:29:37
Java
yury_borisov7, 2017-01-11 02:29:37

What is the best way to use to upload images to the server?

Friends, the task was to upload images to the server, the
server is written in php.
What is the correct way to use base64 to transmit (it seems to me that this is not correct)
or something else?
It is desirable that it would be possible to find out the percentage of downloads
poke your finger =] on libraries or classes
thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2017-01-11
@yury_borisov7

If the main thing is to do it quickly at first, then do it as you can, base64 and other "crutches" that allow you to do without even a POST request, greatly simplify the process and increase cross-platform. :)
If you want to learn how to do well and are ready to wait and get paid, then deal with HTTP POST requests and you can still use multipart form data, you will have to load binary data in a buffer, that is, N bytes, thanks to this it will be easy to realize progress .
Вот такой запрос:
https://www.google.ru/search?q=android+upload+imag...
Но чужой код обычно не очень хорош для вас, а иногда вообще долго не работает сразу и создает много проблем в будущем, поэтому это только если с вас сразу требуют и быстро и очень функционально и при том мало опыта писать самому, тогда просто следует пробовать все подряд.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question