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

Поділитися
Вставка
  • Опубліковано 5 лис 2024

КОМЕНТАРІ • 120

  • @information_technologyg7834
    @information_technologyg7834 3 роки тому +6

    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

  • @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....

  • @Julia-bd4dw
    @Julia-bd4dw Рік тому +2

    Sir how to selct more than one images sir??

  • @yesman3442
    @yesman3442 3 місяці тому

    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 Рік тому +1

    can you please tell me that how to use firebase storage using Web
    Thanks

  • @prashantadhikari5460
    @prashantadhikari5460 3 роки тому

    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 роки тому +1

    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 🙏

  • @tradingwala907
    @tradingwala907 3 роки тому +1

    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?

  • @priyanshmehta5271
    @priyanshmehta5271 2 роки тому +1

    what is this theme in android studio

  • @saipruthvi2506
    @saipruthvi2506 3 роки тому

    Thankyou bro ,what we have to do or can we use this method in fragments also??

  • @gta-servicesgta-services7396
    @gta-servicesgta-services7396 3 роки тому

    Very very good.
    And do you have this same tutorial with data a image ?

  • @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.♥♥♥♥

  • @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?

  • @ramsgarageband5784
    @ramsgarageband5784 3 роки тому +1

    1 No bhava

  • @senthuranradakrishnan8247
    @senthuranradakrishnan8247 2 роки тому

    Thank you so much. This video was really helpful. 😎

  • @freekiad1931
    @freekiad1931 3 роки тому

    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  3 роки тому

      Check out this series to understand firebase in detail.
      ua-cam.com/play/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah.html

  • @tranquocviet8980
    @tranquocviet8980 2 роки тому

    what theme android studio uses you?

  • @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?

  • @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

  • @ishinikiridena6029
    @ishinikiridena6029 3 роки тому

    Thank you soooo much!! It works perfectly!!!

  • @RobinpreetSingh
    @RobinpreetSingh 2 роки тому

    Could you provide video for image uploading from both gallery and camera?

  • @moussayanogo7314
    @moussayanogo7314 3 роки тому

    hello!
    what are the changes you've made in the gradles?

  • @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 роки тому

      ua-cam.com/play/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah.html

  • @adityaprabowo8377
    @adityaprabowo8377 2 роки тому

    thx u save my life buddy.

  • @은혜-s8z
    @은혜-s8z 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!

  • @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

  • @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 роки тому +1

      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 роки тому +1

      I have explained in this video.
      ua-cam.com/video/trjltSUDqnI/v-deo.html

  • @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.

  • @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?

  • @isaacchristdonchikamga9236
    @isaacchristdonchikamga9236 3 роки тому

    Very thank is same with firestone database ?

    • @codingstuff070
      @codingstuff070  3 роки тому

      ua-cam.com/play/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah.html
      In this tutorial series we have used firestore

  • @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.
      ua-cam.com/play/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah.html

  • @luiscastor4063
    @luiscastor4063 4 роки тому

    nice tutorial! man do you know how to implement a multiple image picker instead of 1 picture?

    • @codingstuff070
      @codingstuff070  4 роки тому +1

      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 4 роки тому

      @@codingstuff070 Thanks a lot it was helpful to me!

  • @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

  • @george_sepetadelis
    @george_sepetadelis 3 роки тому

    Man you are the best, thanks 😎

  • @yanamadhiakhila2950
    @yanamadhiakhila2950 3 роки тому

    Can you say how to send the images from realtime database to other activity please

    • @codingstuff070
      @codingstuff070  3 роки тому +1

      Retrieve image in any activity nd pass it with intent using bundle in other activity.

    • @John-qt6qk
      @John-qt6qk 3 роки тому

      use navArg

  • @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 роки тому +1

      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 роки тому +1

      Instagram @codingstuff070

  • @zazagokadze6674
    @zazagokadze6674 2 роки тому

    how to do it with kotlin?

  • @John-qt6qk
    @John-qt6qk 3 роки тому

    does it apply the same for kotlin son?

  • @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

  • @rahatshah2452
    @rahatshah2452 3 роки тому

    Nice tutorial

  • @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

  • @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 роки тому +1

      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

  • @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 роки тому +1

      @Niranjan Kumar msg me at Instagram @sanathgosavi

  • @limcs7606
    @limcs7606 3 роки тому

    The startActivityForResult is deprecated... How to solve it?

  • @kavinduwijethunga3587
    @kavinduwijethunga3587 3 роки тому

    hey, my code doesn't work.it'll show an uploaded fail toast message.do you know the reason??????

  • @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 роки тому +1

      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 роки тому +1

      Good bro...

  • @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 роки тому +1

      Show me ur code photos on instagram @codingstuff070

  • @sahilsaxena3178
    @sahilsaxena3178 3 роки тому

    But how can we retrieve that image from realtime database ? DatabaseReference Name (Mdaonb40NrM2splL2QR) of the url is not known.

  • @BilalAhmad-qj1zu
    @BilalAhmad-qj1zu 3 роки тому

    Thank you so much bro

  • @gabrielpedro4075
    @gabrielpedro4075 3 роки тому

    What's the color theme name?

  • @imrualice
    @imrualice 3 роки тому

    Can we select multiple image here

    • @codingstuff070
      @codingstuff070  3 роки тому +1

      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

  • @raunnejaytabasa7336
    @raunnejaytabasa7336 3 роки тому

    thank you so much!

  • @codesouls2441
    @codesouls2441 3 роки тому

    which emulator are you using

  • @petermwaura924
    @petermwaura924 3 роки тому

    Thanks a lot

  • @SuhasTech
    @SuhasTech 3 роки тому

    brother.. I need help

  • @avery_mort
    @avery_mort 3 роки тому

    Great vid.

    • @codingstuff070
      @codingstuff070  3 роки тому +1

      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.
      ua-cam.com/play/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah.html

  • @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