Skip to content

Commit 3baef9b

Browse files
committed
changed uri to path
1 parent 6d79394 commit 3baef9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/esri/samples/editing/edit_feature_attachments/EditFeatureAttachmentsSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void start(Stage stage) throws Exception {
105105
deleteAttachmentButton.setDisable(true);
106106

107107
// location of attachment to be added
108-
File imageFile = new File(getClass().getResource("/symbols/destroyed.png").toURI());
108+
File imageFile = new File(getClass().getResource("/symbols/destroyed.png").getPath());
109109

110110
// button click to add image attachment to selected feature
111111
addAttachmentButton.setOnAction(e -> addAttachment(imageFile));

0 commit comments

Comments
 (0)