title: Google Drive SDK - Uploading Image, OCR, Download Result
body: <p>So ultimately I'm trying to upload images that I want Google to OCR. Then I want to be able to get the results of the OCR back to my Android app. I have my images uploading properly. I can loop through all the files in my google drive and I see that there are export links available, one of which is "text/plain". If I use one of these urls in a browser, it downloads the text. Is this the way I should be trying to access it? </p>
  
  <p>I've tried to use the url I get from calling getExportLinks method on the file returned by the insert method</p>
  
  <pre><code>File file = drive.files().insert(body, mediaContent).setOcr(true).execute();
  String imageAsTextUrl = getExportLinks.get("text/plain") 
  </code></pre>
  
  <p>I end up getting HTML back that appears to be the Google Drive home page. To get the exported url document, I used google drive instance so it should have properly authenticated like the insert method I would think. </p>
  
  <pre><code>DriveRequest request = new DriveRequest(drive, HttpMethod.GET, imageAsTextUrl, null);
  </code></pre>
  
  <p>Has anyone tried to do this before? What am I doing wrong? </p>