mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2026-04-29 00:02:13 +08:00
refactor(android): replace image path usage with image uris (#906)
* refactor(android): clean up image file path usages * removed references of image paths in log messages
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
package org.apache.cordova.camera;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import android.media.ExifInterface;
|
||||
|
||||
@@ -56,6 +57,16 @@ public class ExifHelper {
|
||||
this.inFile = new ExifInterface(filePath);
|
||||
}
|
||||
|
||||
/**
|
||||
* The file before it is compressed
|
||||
*
|
||||
* @param input
|
||||
* @throws IOException
|
||||
*/
|
||||
public void createInFile(InputStream input) throws IOException {
|
||||
this.inFile = new ExifInterface(input);
|
||||
}
|
||||
|
||||
/**
|
||||
* The file after it has been compressed
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user