How to get text from a inputstream of google drive HttpResponse? -


i trying data inputstream. getting gdrive httpresponse. plz check in code below.

httpresponse resp = service.getrequestfactory().buildgetrequest(                          new genericurl(file.getdownloadurl())).execute();  bufferedreader output = new bufferedreader(                                     new inputstreamreader(resp.getcontent())); system.out.println("shorten response: "); (string line = output.readline(); line != null; line = output.readline()) {     system.out.println(line); } 

i reading .doc file , getting output decoded form:-

��ࡱ� � & ]� � �

how read string? plz me resolve this.


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -