(File file, String type)
| 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); |