Can a Java applet open a “select directory” and write to a filesystem via JavaScript interaction?

后端 未结 3 767
闹比i
闹比i 2021-01-24 02:28

I am looking for a way to save a couple of files created with JavaScript on the clients computer. I want him to be able to choose a folder (similar to open/save folder dialog),

3条回答
  •  旧巷少年郎
    2021-01-24 03:10

    It is possible with a signed applet.

    I'd probably do it the other way around, let the javascript code pass all the data to the applet and the applet should open a FileDialog and write the file.

    Calling javascript from java can be achieved via `JSObject, calling Java from Javascript is explained here

提交回复
热议问题