Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write a text to file with GWT on Client-side?

Is there any way to implement write/read file with gwt on client-side? I tried with java.io.File, java.io.Writer ... I couldn't succeed.

thx in advance!

Update: Please see my own answer for a solution

like image 760
Jama A. Avatar asked Dec 03 '22 03:12

Jama A.


1 Answers

No, you can't write to files on the client-side. GWT only binds a subset of the Java language. Any file IO would need to happen on the server side through RPCs or some kind of web service.

like image 98
Tony Casale Avatar answered Dec 23 '22 13:12

Tony Casale