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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -