We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d79394 commit 3baef9bCopy full SHA for 3baef9b
src/main/java/com/esri/samples/editing/edit_feature_attachments/EditFeatureAttachmentsSample.java
@@ -105,7 +105,7 @@ public void start(Stage stage) throws Exception {
105
deleteAttachmentButton.setDisable(true);
106
107
// location of attachment to be added
108
- File imageFile = new File(getClass().getResource("/symbols/destroyed.png").toURI());
+ File imageFile = new File(getClass().getResource("/symbols/destroyed.png").getPath());
109
110
// button click to add image attachment to selected feature
111
addAttachmentButton.setOnAction(e -> addAttachment(imageFile));
0 commit comments