Android Studio Tutorial - Upload Picture Part 3 - Sending Image To Server

preview_player
Показать описание
How to upload pictures from an android device to a server and retrieve it at anytime in the app.

This will be useful in an app where users will have their own profile pictures or where users can upload pictures.
Рекомендации по теме
Комментарии
Автор

GREAT WORK MAN, i have been looking for quite some time for a tutorial that is so clear and compact like this.THX

ryno
Автор

This gives me a good foundation on what I need to do for a project. I'm still learning networking and server for android, and this is pretty clear. Big up.

CarlitoProductions
Автор

Excellent tutorial. Very well explained. Thanks.

joaquinlinodelatorre
Автор

Everyone who is having problem with deprecated libraries, please change the sdkversion to something old like 21 maybe.

Go to build.gradle : Change compileSDKVersion to 21 (around that only). Android Studio will download the SDK and you are good to go.

Stop abusing him. He taught it very well. It is just that his SDK is an older version. Thats it.
Do some google search before shouting on someone.

pragyanbezbo
Автор

Thanks for this tutorial! More than usefull

ichdu
Автор

Very good tutorials, but all the part with the asynctask is deprecated now. All the variable with Http (like client, post, params) can't be used. Can you do something to resolve this problem? Thx

jeremydubrulle
Автор

Perfectly working fine.... Great example....

syedmohamed
Автор

Hi sir, after i upload a image to server..but the image in server only 3byte and cannot even view in server. Any solution?

gancc
Автор

Fantastic video! Thank you very much! It explained me many things! Highly recommend!

azalero
Автор

Thank you very much, the best tutorial ever

ДавудовМарат
Автор

Can you use the httpurlconnection with PHP to upload the image to the server?
i can't use your code in android 6( sdk 23).
help plesase~

johnsonyau
Автор

Dear Sir! First of all, thank you for tutorials. Useful, very much. Secondly, I need your guidance: I am doing this project, backend in Spring boot and fronted in android. I have to do the same thing (more or less): among the "customer" table fields in my database I should have an image of the customer. I have followed you well on the side of the frontend (android). But since I am not familiar with PHP, I am lost o the side of preparing the Backend. Would you please work me through in my context (Spring boot server with JPA, MySQL) how I could be able to save and retrieve the image of a customer from the server (Encoding and decoding the image...)? Any tutorial for that? I really appreciate in advance. Thank you

padreloco
Автор

Thanks for this tutorial. I'm also getting "Unfortunately your App has stopped" message. It's throwing a null pointer exception error : Attempt to invoke virtual method 'android.graphics.Bitmap on a null object reference
at
The app gets as far as opening the gallery and letting me select a pic. But it doesn't display selected image in ImageView. Then it stops after I name the image, when I click the upload button. I'm getting the same errors on my phone and on the emulator. Any suggestions?

jonsidener
Автор

Toni, what a great videos, I really appreciate. thanks!!

arklan
Автор

no link to the source code? ohhhh dude, welcome >2000 >..<

JohnDoe_
Автор

YOU ARE GOOD, you Must be teacher in Udemy or in collage!

shmonikk
Автор

+Tonikami TV, your tutorial has been awesome man, thank you very much. but if there is anyway you could show us how to change the httpParams part as it has been deprecated. also the retrieve method depends on it too. much appreciated

AhmadHassan-dexo
Автор

Thanks man, you saved my day!
God bless you!

lakemast
Автор

Hey Tonikami TV, I'm using android 6.0 and api 23, httpparams doesn't work and error of unfortunately, photos has stop. Please advice!!!!

cherlyk
Автор

Thanks for greate tutorial - can you share the code please?
its look like its work 100% perfect in you machine but thare is a missing instruction like:
whare r u put the file.php and wich server r u use? (WAMP, XAMP etc..) please - if you can be more spacific it will be great
thanks

guykoren