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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -