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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -