This question already has an answer here:
I have this GWT code that opens a new browser window to show a text file.
Window.open("data:text/plain;base64," + Base64.byteArrayToBase64(textBytes), "_blank", "");
My questions are:
I think you will get answered your first question here: stackoverflow.com/questions/417142/…