How to Upload Image to Server in Android Studio

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 66

  • @CodesEasy
    @CodesEasy  2 года назад +1

    ​Feel free to ask all your doubts here

    • @CodesEasy
      @CodesEasy  2 года назад

      We will respond to all your comments

    • @ghienmatthe
      @ghienmatthe Год назад +1

      @@CodesEasy how to load image from db in app after upload? use glide liblary?

    • @CodesEasy
      @CodesEasy  Год назад +2

      If you are uploading the image to a server you will get a url and after that you can use that url to to load image. Use picasso or glide etc to load image. I am going to publish a video on it soon. ❤️

    • @ghienmatthe
      @ghienmatthe Год назад

      @@CodesEasy Thanks

    • @newtechnicpro852
      @newtechnicpro852 Год назад

      I like your video very much, I have a request to you, how can I show the app again by uploading the image to the server. Please share one such video. I have a project I'm working on so far I can't do the rest🙏🙏

  • @nagardharmik3856
    @nagardharmik3856 Год назад +1

    i try it to 3 to 4 days and i see your video. just thanks. i cant explain how much thanks i wnat to say but i want to thank you

  • @INEMEMONDAY
    @INEMEMONDAY 2 года назад +1

    You just made my day, I was facing an error converting Bitmap to String because I was using java.utils instead of android.utils, thankyou so much😊, I just subscribed and liked

    • @CodesEasy
      @CodesEasy  2 года назад

      Happy that the video was helpful for you ❤️

  • @gurpreetkaur-jt2il
    @gurpreetkaur-jt2il Год назад +1

    Thank you for an amazing video. Just one question ,if I will use BLOB data type instead of text in 'path' field, will it work?

    • @CodesEasy
      @CodesEasy  Год назад +1

      Here we are storing it as string.

  • @candrasniper3404
    @candrasniper3404 Год назад +1

    Thanks, it works. Why the upload image get bigger size (MB) than the original image from gallery? For the example, 2.66MB original image, then in the uploaded folder, it becomes 9.345MB.

    • @CodesEasy
      @CodesEasy  Год назад

      You can change the compression value there in java part

    • @candrasniper3404
      @candrasniper3404 Год назад +1

      @@CodesEasy the quality when compress the bitmap, isnt it? I've changed it. From 100 to 10. And it didn't works. The size in uploaded folder still same, 9.345MB. I use some repository implements such as imagePicker and using maxSize. it results bad image on 512x512kB from 3520x3520kb original size. Or because I choose png as the result? Is there a chance to compress image from android app side? Because it will send big data and consumes long sending time when I choose to compress it at the php side, in the purpose to make the reliable compressed image quality.

    • @CodesEasy
      @CodesEasy  Год назад

      Check this solution in the link. Haven't check this in detail
      Check if this function and see it works. stackoverflow.com/a/23081997
      You simply try google shrink image size on android and you will get results

  • @rhiannamilindra8993
    @rhiannamilindra8993 6 месяцев назад

    Does this apply to uploading files also?
    if not, may you please suggest a website or tutorial vid that can help in java

  • @abdelazizelbekkar3319
    @abdelazizelbekkar3319 Год назад +1

    Thank you very much for this extremely instructive video. Very clear and consistent. Abdelaziz from Casablanca Morocco. I have integrated Codes Easy WhatsApp group.

  • @hashimabdikadir7590
    @hashimabdikadir7590 7 месяцев назад

    this helped me a lot, Thanks.

  • @alhanfy
    @alhanfy Год назад +1

    thanks a lot for your Code , and really nice support Team ,, really thanks a lot

  • @leonardo8156
    @leonardo8156 2 года назад +3

    can you do how to read image from mysql to android studio??

    • @CodesEasy
      @CodesEasy  2 года назад +1

      In the end you can see i show how to show it in web. Like that you just have to make a json response api. Watch this video to know how to do that. ruclips.net/video/TGBjemlj2MM/видео.html
      Check the read operation part.

    • @leonardo8156
      @leonardo8156 2 года назад

      @@CodesEasy sorry i have tried but still error to fetch image from mysql. it works for retrieving text but not for images

  • @余宗錞
    @余宗錞 Год назад +1

    sorry my english is not good,so I am writing this question using a translator.
    If use the volley kit and php, is it possible to reverse upload images from mysql to the app?

    • @CodesEasy
      @CodesEasy  Год назад +1

      You want to read or download the image from the database to android, yes it's possible

  • @shubhangandas4148
    @shubhangandas4148 Год назад +1

    we can create an app in android studio using html and css. How to create a button in the webpage that will act as a photo upload in android studio?

    • @CodesEasy
      @CodesEasy  Год назад

      If you ask you can definitely do some work around for this but it's not recommended. Just use a webview or use android views.

  • @jeraldkasim2363
    @jeraldkasim2363 2 года назад +1

    Hello, please make an tutorial on sms notification with interval time in android studio

  • @janearltocson2965
    @janearltocson2965 2 года назад +1

    nice content bro

    • @CodesEasy
      @CodesEasy  2 года назад

      Thanks for the visit

  • @RudiMuryanta
    @RudiMuryanta Год назад +1

    do this work for android 10 or targetSdk 33 ?

    • @CodesEasy
      @CodesEasy  Год назад

      Yes

    • @RudiMuryanta
      @RudiMuryanta Год назад

      thank you so much, i've download your code. And now, i need rotate and crop before upload.

  • @deliciasyifamaghfira4380
    @deliciasyifamaghfira4380 Год назад +1

    halo, how to get the image back using shared preferences?

    • @CodesEasy
      @CodesEasy  Год назад

      You can either store the data in shared preferences or you can retrieve the data again from the database, like in am showing in the video at the end. Return the image data only and display it in android

  • @jozefpalenik5354
    @jozefpalenik5354 Год назад +1

    How to upload photo into another folder in phone ?

    • @CodesEasy
      @CodesEasy  Год назад

      You mean move or copy a photo within the same device?
      This video is not for that. It's totally different. Google it or join our groups, discord etc and ask there

  • @akashchoudhary6876
    @akashchoudhary6876 Год назад +1

    All the steps are done right but the image uploaded becomes a file of under 2kb and not supported format

    • @CodesEasy
      @CodesEasy  Год назад

      Then you might be doing something wrong

  • @AdrianoCarvalho-r2b
    @AdrianoCarvalho-r2b 3 месяца назад

    sensacional

  • @samccxr7789
    @samccxr7789 Год назад +1

    Is it possible to store ssms using volley

    • @CodesEasy
      @CodesEasy  Год назад

      Volley is an http library

  • @chirocatt1900
    @chirocatt1900 Год назад +1

    How to make circle image ??

    • @chirocatt1900
      @chirocatt1900 Год назад

      For profile photo

    • @CodesEasy
      @CodesEasy  Год назад +1

      add imageview inside cardview and add radios for cardview

    • @chirocatt1900
      @chirocatt1900 Год назад

      @@CodesEasy thankyouuu,

  • @junaid-sm
    @junaid-sm Год назад +1

    will it work for android sdk 33?

    • @CodesEasy
      @CodesEasy  Год назад

      Yes

    • @CodesEasy
      @CodesEasy  Год назад

      In the video we are using SDK version 33 itself

  • @awaisahmad5908
    @awaisahmad5908 9 месяцев назад +1

  • @Abhishek_Dalmia_MFP
    @Abhishek_Dalmia_MFP Год назад +1

    Why my uploaded image is getting crupted

    • @CodesEasy
      @CodesEasy  Год назад

      There will be something wrong with your code.

  • @atiqulislam2626
    @atiqulislam2626 2 года назад +1

    Why the premieres? ****

    • @CodesEasy
      @CodesEasy  2 года назад

      It will send you notification 30 mins before it starts.

    • @atiqulislam2626
      @atiqulislam2626 2 года назад

      @@CodesEasy It's too much boring

    • @CodesEasy
      @CodesEasy  2 года назад

      Not really it's useful is some ways, but sure we will consider publishing it directly also. 👍