I'm using JavaFX (from jdk 1.7) to display a angular web page:
final private WebView browser = new WebView();
final private WebEngine webEngine = browser.getEngine();
webEngine.load("http://localhost:8080/myApp");
In this angular application, I use the javascript FileReader to load the base64 content of the file (FileReader.readAsDataURL).
The problem is that JavaFX's WebEngine does not support FileReader (although some claim it does):
ReferenceError: Can't find variable: FileReader
The functionality I want:
- Send a message to a REST-WS
- This message may contain multiple attachments
- Do not store the attachment on the server before the message is send
- I do NOT need to preview the attachments (just the name)
Note: JavaFX's WebEngine does not support multiple file input (so does not work!)
Is there an alternative way to achieve this?