This commit is contained in:
simon 2020-11-25 18:59:40 +02:00
parent e845d901ce
commit 1c1777cd6e

View file

@ -430,7 +430,7 @@ public class MenuBuilder {
try { try {
inputStream = app.getContentResolver().openInputStream(uri); inputStream = app.getContentResolver().openInputStream(uri);
if (inputStream != null) { if (inputStream != null) {
uploadImageToPlace(view, inputStream); uploadImageToPlace(inputStream);
} }
} catch (Exception e) { } catch (Exception e) {
LOG.error(e); LOG.error(e);
@ -444,7 +444,7 @@ public class MenuBuilder {
t.start(); t.start();
} }
private void uploadImageToPlace(View view, InputStream image) { private void uploadImageToPlace(InputStream image) {
InputStream serverData = new ByteArrayInputStream(compressImage(image)); InputStream serverData = new ByteArrayInputStream(compressImage(image));
final String baseUrl = OPRWebviewActivity.getBaseUrl(app); final String baseUrl = OPRWebviewActivity.getBaseUrl(app);
String url = baseUrl + "api/ipfs/image"; String url = baseUrl + "api/ipfs/image";