Open float85 opened 3 years ago
var file = Compressor.compress(applicationContext,actualImage)
compress file but file path is change, so retrofit server side image not uploaded.
old path : /storage/emulated/0/Download/pexels-matheus-bertelli-573299.jpg new path : /data/user/0/com.example.redjinni/cache/compressor/pexels-matheus-bertelli-573299.jpg
Pleases suggest.
Hello i want to change the link to save the default file to my folder, where can i change it. thank
old: /data/user/0/com.example.camerademo001/cache/ new: file:///storage/emulated/0/DCIM/
source code:
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { super.onActivityResult(requestCode, resultCode, data) if (requestCode == CAMERA_REQUEST) { actualImage = FileUtilCompressor.from(this, tempFilePath)?.also { // actualImageView.setImageBitmap(loadBitmap(it)) // actualSizeTextView.text = String.format("Size : %s", getReadableFileSize(it.length())) // clearImage() }