Тёмный

Upload Image To Firebase Storage And add URL to Realtime Database 2021 (Image Uploader Part1) 

CodingSTUFF
Подписаться 11 тыс.
Просмотров 73 тыс.
50% 1

In this tutorial, we will be learning how we can upload images to Firebase Storage and can save the URL of the uploaded images to the firebase Realtime Database.
Follow me on Instagram - ...
To Watch Complete Instag Blog App Tutorial - • Instag Blog App ( Fire...
To Watch Firebase Tutorial Playlist - • Firebase Database as B...
To Download Source Code - sanathgosavi.b...
To Watch To-Do App Playlist - • To Do App Using Sqlite...
To Watch Calculator App Tutorial - • How to Create Calculat...

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 120   
@information_technologyg7834
@information_technologyg7834 3 года назад
thank you so much . i was wondwering how to get download url to realtime .
@sagarrawal5195
@sagarrawal5195 3 года назад
Hello I'm having trouble with this can u help me I have posted a question in StackOverflow here is the link stackoverflow.com/questions/67053769/how-to-show-images-from-firebase-into-recyclerview-with-picasso
@Julia-bd4dw
@Julia-bd4dw Год назад
Sir how to selct more than one images sir??
@meldrickfernandes3645
@meldrickfernandes3645 3 года назад
Thank You Very Much I Was Building My School App And I wanted to add pics and retrieve them so I found your video very useful Thanks A Lot Keep It Up....
@yesman3442
@yesman3442 Месяц назад
Done. It was a successful project, thank you and God bless. Sir, i added delete functionality to the comments but is doesn't remove it from tye firebase. And how to like likes and comments.
@eshafatima789
@eshafatima789 Год назад
can you please tell me that how to use firebase storage using Web Thanks
@prashantadhikari5460
@prashantadhikari5460 2 года назад
Thanks lot lot lot. I was so much depressed to thinking about getDownloadUrl method but you take me from the hell. Thank you sir.
@ashokpoojari8422
@ashokpoojari8422 2 года назад
Tq for this video .. but I have one doubt how to retrieve data in another activity using gridview that means you already added those images to firebase in one activity ryt my question is how retrieve those images to another activity using gridview ?? Plss help me 🙏
@ashokpoojari8422
@ashokpoojari8422 2 года назад
Is it possible??
@pratyushsingh4721
@pratyushsingh4721 2 года назад
Thank you so much friend. This video saved my day. I can't thank you enough as you also shared the code.♥♥♥♥
@tradingwala907
@tradingwala907 3 года назад
image is uploading in firebase storage but image url is not uploading in realtime database,how can i solve my probem,can u solve my problem using anydesk?
@senthuranradakrishnan8247
@senthuranradakrishnan8247 2 года назад
Thank you so much. This video was really helpful. 😎
@ramsgarageband5784
@ramsgarageband5784 3 года назад
1 No bhava
@priyanshmehta5271
@priyanshmehta5271 2 года назад
what is this theme in android studio
@ishinikiridena6029
@ishinikiridena6029 2 года назад
Thank you soooo much!! It works perfectly!!!
@adityaprabowo8377
@adityaprabowo8377 2 года назад
thx u save my life buddy.
@ahmerali6862
@ahmerali6862 3 года назад
Thank You so much! for this amazing tutorial
@gilbertjaymaminta9252
@gilbertjaymaminta9252 3 года назад
got my problem fixed thank you very much!!!!!
@codingstuff070
@codingstuff070 3 года назад
Hey.... Check out new tutorial playlist of instag blog app where we are using firebase multiple services. ru-vid.com/group/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah
@george_sepetadelis
@george_sepetadelis 3 года назад
Man you are the best, thanks 😎
@saipruthvi2506
@saipruthvi2506 2 года назад
Thankyou bro ,what we have to do or can we use this method in fragments also??
@rahatshah2452
@rahatshah2452 2 года назад
Nice tutorial
@gta-servicesgta-services7396
@gta-servicesgta-services7396 3 года назад
Very very good. And do you have this same tutorial with data a image ?
@BilalAhmad-qj1zu
@BilalAhmad-qj1zu 3 года назад
Thank you so much bro
@freekiad1931
@freekiad1931 2 года назад
Thanks for video, It is really helpful. Can you please explain, how we can create a code for Image Upload on Firebase storage automatically without any click on button? When we run or install the App it should load image automatically.
@codingstuff070
@codingstuff070 2 года назад
Check out this series to understand firebase in detail. ru-vid.com/group/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah
@RobinpreetSingh
@RobinpreetSingh 2 года назад
Could you provide video for image uploading from both gallery and camera?
@Syed_Asghar
@Syed_Asghar Год назад
after getting image and text from firebase into app online, then how to image and text save automatic into mobile, if we open app second time without internet, show image text offline ?? how to do this !! please
@codingstuff070
@codingstuff070 Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RL6Efr6hJqs.html
@Eric-ki4ke
@Eric-ki4ke 2 года назад
I keep getting an error at the end where the activity closes. Do you have a course where we can work with you to get through any problems which arise?
@moussayanogo7314
@moussayanogo7314 3 года назад
hello! what are the changes you've made in the gradles?
@Heartilypaw
@Heartilypaw 3 года назад
I saw your video and I have done it but now it is not working as I update my android studio. so what to do?
@raunnejaytabasa7336
@raunnejaytabasa7336 3 года назад
thank you so much!
@user-lh4dd4of4s
@user-lh4dd4of4s 3 года назад
hello, im wondering how i can add the image url into my database without overwriting the existing data? i simply want to add the imageUrl as another element into an existing child. would it be possible? thank you!
@petermwaura924
@petermwaura924 3 года назад
Thanks a lot
@YassinSuper13
@YassinSuper13 3 года назад
Can i ask you why you are use storge file too save imege file in firebase and use real time data base to save url of that image Please explain this why you save imege file insted imeg url And you can retrive url from database
@codingstuff070
@codingstuff070 3 года назад
We can not save image file real time db so that's why we save the image to the storage nd it's url to real-time db for retrieving purprose
@YassinSuper13
@YassinSuper13 3 года назад
@@codingstuff070 ok but what difference between firebase fire store and real time database when I use firestore insted real time database
@codingstuff070
@codingstuff070 3 года назад
I have explained in this video. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-trjltSUDqnI.html
@kartiksrivastava3517
@kartiksrivastava3517 3 года назад
sir can you make video on how can we store data for different user and show them differently in firebase. Like you show data of all the user i want to see only for the specific user.
@codingstuff070
@codingstuff070 3 года назад
ru-vid.com/group/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah
@kanamachi9185
@kanamachi9185 3 года назад
I have already login throw firebase authentication. So i try when imageUrl upload Databaserefarance from login uId. can you help which line change?
@mukeshroy3858
@mukeshroy3858 2 года назад
When user click UPLOAD, I want to save the original image and a square small size thumb image also. Is it possible ? Please help me..
@codingstuff070
@codingstuff070 2 года назад
Yes u need to compress image and save it as thumbnail
@relangimammayyacodingcente9416
@relangimammayyacodingcente9416 2 года назад
Sir the information is adding into the firebase but the information not adding into the activity from firebase. Plss.. Sir help me
@codingstuff070
@codingstuff070 2 года назад
Watch second part of this video
@relangimammayyacodingcente9416
@relangimammayyacodingcente9416 2 года назад
Hi sir thank you for your reply, can you tell how to insert another activity in container of home fragment . Sir I created one readable bottom bar and I made five fragments in that bar, I inserted all wanted information in another activity I want to display that information in home fragment Pls sir can tell me.
@luiscastor4063
@luiscastor4063 3 года назад
nice tutorial! man do you know how to implement a multiple image picker instead of 1 picture?
@codingstuff070
@codingstuff070 3 года назад
Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); startActivityForResult(intent, requestCode) ;
@luiscastor4063
@luiscastor4063 3 года назад
@@codingstuff070 Thanks a lot it was helpful to me!
@tranquocviet8980
@tranquocviet8980 2 года назад
what theme android studio uses you?
@delacruzneiltyronev.7849
@delacruzneiltyronev.7849 3 года назад
'C:\User\.gradle\cahes..\..\.. es\drawable-xhdpi-v4/common_google_signin_btn_text_dark_normal_background.9png',attempting to stop daemon" i get this error when im connecting my project to firebasedatabase please help
@avery_mort
@avery_mort 3 года назад
Great vid.
@codingstuff070
@codingstuff070 3 года назад
Thanks.... Do Subscribe
@avery_mort
@avery_mort 3 года назад
@@codingstuff070 got you 👍
@codingstuff070
@codingstuff070 3 года назад
Hey.... Check out new tutorial playlist of instag blog app where we are using firebase multiple services. ru-vid.com/group/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah
@kanamachi9185
@kanamachi9185 3 года назад
Good tutorial. But the problem i write code on fragment now some error. can u help me?
@codingstuff070
@codingstuff070 3 года назад
What error it is
@kanamachi9185
@kanamachi9185 3 года назад
@@codingstuff070 after add now solved. But image not uploading on firebase
@kanamachi9185
@kanamachi9185 3 года назад
@@codingstuff070 uploading successful because firebase storage you change that not work. so i previous rule back and work perfectly
@attranphu5058
@attranphu5058 3 года назад
Thank you for your Video. But sir i get this error. Model model = new Model(uri.toString()); Sir, at this code I get error ( Cannot Resovle Constructor ). I use your source code. Can you help me ?
@codingstuff070
@codingstuff070 3 года назад
Make sure u create one empty constructor and one string Parameteeized constructor in Model class.
@codingstuff070
@codingstuff070 3 года назад
@Niranjan Kumar create one empty constructor and one parameterized
@codingstuff070
@codingstuff070 3 года назад
@Niranjan Kumar msg me at Instagram @sanathgosavi
@sahilsaxena3178
@sahilsaxena3178 3 года назад
But how can we retrieve that image from realtime database ? DatabaseReference Name (Mdaonb40NrM2splL2QR) of the url is not known.
@codingstuff070
@codingstuff070 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-iEcokZOv5UY.html
@imrualice
@imrualice 3 года назад
Hey , help me please, can we do the same for camera image ? Please can you share the code if Possible ? or how to do that !! I need exact same process but instead of picking image from gallery, I want to click from camera
@codingstuff070
@codingstuff070 3 года назад
private static final int TAKE_PICTURE = 1; private Uri imageUri; public void takePhoto(View view) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File photo = new File(Environment.getExternalStorageDirectory(), "Pic.jpg"); intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo)); imageUri = Uri.fromFile(photo); startActivityForResult(intent, TAKE_PICTURE);
@imrualice
@imrualice 3 года назад
@@codingstuff070 with this code , will it get uploaded to database also ?
@imrualice
@imrualice 3 года назад
@@codingstuff070 can we connect over email or whatsapp ! So that i can share the code
@imrualice
@imrualice 3 года назад
@@codingstuff070 in my project i need to upload the image from camera to database & store the url, How can it be done ! Please help
@codingstuff070
@codingstuff070 3 года назад
Instagram @codingstuff070
@yanamadhiakhila2950
@yanamadhiakhila2950 3 года назад
Can you say how to send the images from realtime database to other activity please
@codingstuff070
@codingstuff070 3 года назад
Retrieve image in any activity nd pass it with intent using bundle in other activity.
@John-qt6qk
@John-qt6qk 3 года назад
use navArg
@zazagokadze6674
@zazagokadze6674 2 года назад
how to do it with kotlin?
@isaacchristdonchikamga9236
@isaacchristdonchikamga9236 3 года назад
Very thank is same with firestone database ?
@codingstuff070
@codingstuff070 3 года назад
ru-vid.com/group/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah In this tutorial series we have used firestore
@John-qt6qk
@John-qt6qk 3 года назад
does it apply the same for kotlin son?
@limcs7606
@limcs7606 3 года назад
The startActivityForResult is deprecated... How to solve it?
@ketankhandelwal8626
@ketankhandelwal8626 3 года назад
i have given 5 days to it recently
@ndarukim3590
@ndarukim3590 3 года назад
How you solve that bro? cause I have same problem with you
@ketankhandelwal8626
@ketankhandelwal8626 3 года назад
@@ndarukim3590 watch neat root image picker video
@iqraalam6429
@iqraalam6429 3 года назад
Asslam alaikum! can you tell me why I can't upload image ?..i'm getting an error Uploading failed :(
@codingstuff070
@codingstuff070 3 года назад
Show me ur code photos on instagram @codingstuff070
@christianryanpallarca9443
@christianryanpallarca9443 3 года назад
Hello dood, I wish you will notice this. I user your source code to my project, then when i upload the image it always fail. How to fix this? tysm
@codingstuff070
@codingstuff070 3 года назад
Send me photos of ur code on instagram at @codingstuff070
@christianryanpallarca9443
@christianryanpallarca9443 3 года назад
@@codingstuff070 I already message you dood
@pedropalhinha4307
@pedropalhinha4307 3 года назад
Hi, i'm getting an error because of the DatabaseReference: "Caused by: com.google.firebase.database.DatabaseException: Failed to get FirebaseDatabase instance: Specify DatabaseURL within FirebaseApp or from your getInstance() call. " Do you know why that might be? (I have a login system before the part where I upload the image and that's when it crashes the app)
@codingstuff070
@codingstuff070 3 года назад
May be forgot to write databaseref =FirebaseDatabase.getInstance(). gereference() ; Kindly check out the source code in the description box. And match ur code if u have other errors
@pedropalhinha4307
@pedropalhinha4307 3 года назад
@@codingstuff070 I did match the code, and checked several times thus i came here. But fortunately after that I searched a bit more and decided to add the google-services.json once again and it worked! Thank you for the video, and the answer!!
@codingstuff070
@codingstuff070 3 года назад
Good bro...
@rinsarata6221
@rinsarata6221 3 года назад
i have a problem once i pick the image from gallery, the image does not appear and i cannot upload it to firebase
@codingstuff070
@codingstuff070 3 года назад
Make sure u follow source code property.... sanathgosavi.blogspot.com/2020/10/upload-images-to-firebase-storage-and.html?m=1
@rinsarata6221
@rinsarata6221 3 года назад
@@codingstuff070 I follow the video steps properly but then the image still not appear after I select from the gallery 🙏
@codingstuff070
@codingstuff070 3 года назад
Send me ur code screen shot at Instagram @codingstuff070
@meetsamseen
@meetsamseen 3 года назад
I had the same issue too, but after checking the source code, I realized this line was the culprit: if (requestCode == 2 && requestCode == RESULT_OK && data != null) {. requestCode for the second time should be resultCode.
@ishaqfarid2987
@ishaqfarid2987 3 года назад
@@codingstuff070 i also have error at this step
@kavinduwijethunga3587
@kavinduwijethunga3587 3 года назад
hey, my code doesn't work.it'll show an uploaded fail toast message.do you know the reason??????
@codingstuff070
@codingstuff070 3 года назад
Show me ur code photos on Instagram @codingstuff070
@kavinduwijethunga3587
@kavinduwijethunga3587 3 года назад
@@codingstuff070 Thank You.I "ll send you code
@kavinduwijethunga3587
@kavinduwijethunga3587 3 года назад
I sent my code via instergram.please check that.❤
@codingstuff070
@codingstuff070 3 года назад
Ok
@SuhasTech
@SuhasTech 3 года назад
brother.. I need help
@codingstuff070
@codingstuff070 3 года назад
Yes bro
@SuhasTech
@SuhasTech 3 года назад
@@codingstuff070 insta
@codingstuff070
@codingstuff070 3 года назад
@sanathgosavi
@gabrielpedro4075
@gabrielpedro4075 3 года назад
What's the color theme name?
@codingstuff070
@codingstuff070 3 года назад
One Dark
@imrualice
@imrualice 3 года назад
Can we select multiple image here
@codingstuff070
@codingstuff070 3 года назад
Not here... U need to write code for selecting multiple images Intent intent = new Intent(); intent.setType("image/*"); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent,"Select Picture"), 1);
@imrualice
@imrualice 3 года назад
@@codingstuff070 Thnk u
@codesouls2441
@codesouls2441 3 года назад
which emulator are you using
@codingstuff070
@codingstuff070 3 года назад
It is one plus customized one...
@mohamedsiraj5388
@mohamedsiraj5388 2 года назад
Your source code is working but users upload the image it cannot show in frontend (display) it's blank page say the reason and i also message in your insta I'd email also
@codingstuff070
@codingstuff070 2 года назад
Ur model class variables name and field names in firebase should match
@mohamedsiraj5388
@mohamedsiraj5388 2 года назад
And users means me only user not launched the app I will run the app in physical devices
Далее
Bike vs Super Bike Fast Challenge
00:30
Просмотров 9 млн
You are loading Images wrong! Use this instead 😍
14:41