|
|
@@ -372,6 +372,14 @@ public class MainActivity extends AppCompatActivity implements RAWebView.WebView
|
|
|
|
|
|
private void setWebImageForPath(String path) {
|
|
|
if (path != null) {
|
|
|
+ File imgFile = ImageUtil.compressImageFile(self, new File(path));
|
|
|
+ if (imgFile != null) {
|
|
|
+ path = imgFile.getAbsolutePath();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (path != null) {
|
|
|
+
|
|
|
String imgBase64 = FileManager.base64StringFromFile(path);
|
|
|
// setWebImageWithBase64(imgBase64);
|
|
|
|