MCPcopy Create free account
hub / github.com/M66B/FairEmail / getDataUri

Method getDataUri

app/src/main/java/eu/faircode/email/ImageHelper.java:639–643  ·  view source on GitHub ↗
(File file, String type)

Source from the content-addressed store, hash-verified

637 }
638
639 static String getDataUri(File file, String type) throws IOException {
640 try (InputStream is = new FileInputStream(file)) {
641 return getDataUri(is, type);
642 }
643 }
644
645 static String getDataUri(InputStream is, String type) throws IOException {
646 byte[] bytes = Helper.readBytes(is);

Callers 3

onExecuteMethod · 0.95
embedInlineImagesMethod · 0.95
getMethod · 0.95

Calls 3

readBytesMethod · 0.95
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected