GWT RequestBuilder: How to handle pdf? -


i sending request on server, , server returns streamingoutput (wriring bytes of pdf file) in onresponserecieved need handle file , start download. how start download file?

i supose dont need process data in javascript, you?

if want download file or display in browser, create button in page when user clicks show in new window or user asked save file:

final string url = "http://gwtquery.googlecode.com/git/readme.txt"; string name = "readme.txt";  anchor link1 = new anchor(name); rootpanel.get().add(link1); link1.addclickhandler(new clickhandler() {   public void onclick(clickevent event) {     window.open(url, "_blank", "");   } }); 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -