How to Upload Image to Server in Android Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 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

    • @CodesEasy
      @CodesEasy  ปีที่แล้ว

      Glad it helped

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

  • @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 5 หลายเดือนก่อน

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

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

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

    • @CodesEasy
      @CodesEasy  ปีที่แล้ว

      Glad it was helpful!

  • @hashimabdikadir7590
    @hashimabdikadir7590 6 หลายเดือนก่อน

    this helped me a lot, Thanks.

  • @leonardo8156
    @leonardo8156 ปีที่แล้ว +3

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

    • @CodesEasy
      @CodesEasy  ปีที่แล้ว +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. th-cam.com/video/TGBjemlj2MM/w-d-xo.html
      Check the read operation part.

    • @leonardo8156
      @leonardo8156 ปีที่แล้ว

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

  • @alhanfy
    @alhanfy ปีที่แล้ว +1

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

    • @CodesEasy
      @CodesEasy  ปีที่แล้ว

      Happy that you liked it

  • @jeraldkasim2363
    @jeraldkasim2363 2 ปีที่แล้ว +1

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

  • @janearltocson2965
    @janearltocson2965 ปีที่แล้ว +1

    nice content bro

    • @CodesEasy
      @CodesEasy  ปีที่แล้ว

      Thanks for the visit

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

  • @AdrianoCarvalho-r2b
    @AdrianoCarvalho-r2b 2 หลายเดือนก่อน

    sensacional

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

  • @samccxr7789
    @samccxr7789 ปีที่แล้ว +1

    Is it possible to store ssms using volley

    • @CodesEasy
      @CodesEasy  ปีที่แล้ว

      Volley is an http library

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

  • @awaisahmad5908
    @awaisahmad5908 9 หลายเดือนก่อน +1

    • @CodesEasy
      @CodesEasy  9 หลายเดือนก่อน

      👍

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

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

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

  • @Abhishek_Dalmia_MFP
    @Abhishek_Dalmia_MFP ปีที่แล้ว +1

    Why my uploaded image is getting crupted

    • @CodesEasy
      @CodesEasy  ปีที่แล้ว

      There will be something wrong with your code.