Upload Image to Server using Retrofit in Android Studio Kotlin Tutorial | Part 1

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • In this tutorial, I will show you how to upload an image to a PHP server using android retrofit Rest Api.
    Part-2: • Upload Image to Server...
    Part-3: • Upload Image to Server...
    Do you Want me to Develop Android App for you?
    Check out my GIG: www.fiverr.com...
    Please Subscribe : www.youtube.co...
    Source code : github.com/waq...
    Backend Api code : github.com/waq...
    You will need to upload photos or images from your android app to a server. Many apps have this functionality, including Telegram, Instagram, Facebook, WhatsApp, etc. You have built your excellent app and want users to upload images, for instance, to change profile pictures and send images to other users. If so, this tutorial is just for you. You may use the examples in this tutorial and modify them in your projects.
    What is Android Retrofit?
    Retrofit is an excellent type-safe HTTP client for Android and Java. Some guys at Square built this awesome library. Retrofit makes it easy to handle JSON or XML data that is parsed into Plain Old Java Objects (POJOs). Retrofit takes care of all HTTP calls and data transmission between Android client applications and a remote server.
    upload multipart image and text using retrofit
    Retrofit form data image tutorial
    image send retrofit tutorial
    Retrofit2 tutorial image send android
    send image retrofit form data
    Retrofit2 form data tutorial android
    retrofit tutorial in android studio,Retrofit in android
    Send image to server android retofit
    Multi part retrofit tutorial android

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

  • @tegas3820
    @tegas3820 3 месяца назад

    Hello, I really like your video. But can it be used to select other types of file? Like pdf, docx, powerpoint, videos, and anything? Thank you!

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

    I have issue from my side I am uploading correct file for send in APi but response is showing this is not jpg file. I already debug my problem and it's correct file

  • @swetblack6
    @swetblack6 10 месяцев назад

    With what I can replace the startActivityForResult function because it is now deprecated!?

  • @tongcaocuong8223
    @tongcaocuong8223 5 месяцев назад

    thank you man

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

    hi, it seems that startActivityForResult is now deprecated and the variable REQUEST_CODE_IMAGE is no more present by default, with what i can substitute this? thanks

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

      Bro Request_code_image is a Code that we defined in our Activity Scope, you can define 1 yourself and get the reference of that variable.:)

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

      @@genericapps Sorry, android studio signed at me as a constant of a lib and i didn't doublecheck

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

    you didnt provoded php code so it dosent ment anything to make this video 🌚 lol

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

      plz see description, added in description :)

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

      2 files - Api.php & DBConnect.php
      added in decription as Backend Api code :)
      if you bump in any issue plz do ping me :)