<How to post a selected image to a python API whic...
# stackoverflow
u
How to post a selected image to a python API which will save the filename to mySQL db and then upload the image to an online folder This is my Kotlin code imageButton.setOnClickListener { val gallery = Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI) startActivityForResult(gallery, pickImage) } } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { super.onActivityResult(requestCode, resultCode, data) if (resultCode == RESULT_OK && requestCode == pickImage) { imageUri = data?.data imageView.setImageURI(imageUri)...