title: Data is corrupted while storing it into database
body: <p>As creating a form that stored the candidate's basic info along with a pic, as I click on upload btn data which is entered in edit text does not match data stored in firebase.</p>
  <p>upload activity</p>
  <pre><code> binding.btnUpload.setOnClickListener {
      
          showProgressBar()
  
          val name= binding.etName.toString()
          val fathers_name =binding.etFatherName.toString()
          val gender=binding.etGender.toString()
          val dob=binding.etDob.toString()
          val time_place = binding.etTimePlace.toString()
          val qualification = binding.etQualification.toString()
          val job = binding.etJob.toString()
          val Height = binding.etHeight.toString()
          val fathers_qualification = binding.etFatherQualification.toString()
          val requirement = binding.etRequirement.toString()
          val address = binding.etAddress.toString()
          val contact=binding.etContact.toString()
      //    val imageUrl = imageUri.toString()
  
          val candidate= Candidates(name,fathers_name,gender,dob,time_place,
              qualification,job,Height,fathers_qualification,requirement,address, contact)
  
          database.child( System.currentTimeMillis().toString()).setValue(candidate).addOnCompleteListener{
                  if (it.isSuccessful){
  
                      uploadProfilePic()
  
                  }else{
  
                   hideProgressBar()
  
                      Toast.makeText(this, &quot;Failed to upload profile&quot;, Toast.LENGTH_SHORT).show()
                  }
  
  
  
  
              Toast.makeText(this, &quot;Successfully saved&quot;, Toast.LENGTH_SHORT).show()
          }.addOnFailureListener {
              Toast.makeText(this, &quot;Failed&quot;, Toast.LENGTH_SHORT).show()
          }
      }
  
  }
  
  
  private fun uploadProfilePic() {
      storageRef= FirebaseStorage.getInstance().getReference(&quot;candidates&quot;)
      storageRef.putFile(imageUri).addOnSuccessListener {
          Toast.makeText(this, &quot;profile picture uploaded&quot;, Toast.LENGTH_SHORT).show()
          hideProgressBar()
      }.addOnFailureListener {
  
          hideProgressBar()
  
          Toast.makeText(this, &quot;failed to upload the profile pic&quot;, Toast.LENGTH_SHORT).show()
      }
  
  }
  </code></pre>
  <p><img src="https://i.stack.imgur.com/V229x.png" alt="Image of corrupted data in firebase" /></p>
  <p>As entered basic details, but it showing some wired data into database.</p>