title: Google Drive - use WebViewLink vs thumbnailLink
body: <p>I'm using the Google Drive API where I can gain access to 2 pieces of data that I need to display a jpg file oin my program. <code>WebViewLink</code> is the "large" size image while <code>thumbnailLink</code> is the "thumb" smaller size of the same image.        </p>
  
  <p>I'm having an issue with downloading the WebViewLink that I do not have with the thumbnailLink.  Part of my code calls either <code>exif_imagetype($filename)</code> or <code>getimagesize($filename)</code> so I can retrieve the type, height &amp; width etc for the $<code>filename</code>.  This is successful for the thumbnailView but not the WebViewLink...</p>
  
  <p>code snippet...</p>
  
  <pre><code>$WebViewLink = "https://drive.google.com/a/treering.com/file/d/blablabla";
  $type = exif_imagetype($WebViewLink);
  --- results in the error
  "PHP Warning:  exif_imagetype(): stream does not support seeking..."
  </code></pre>
  
  <p>where as...</p>
  
  <pre><code>$thumbnailLink = "https://lh6.googleusercontent.com/blablabla";
  $type = exif_imagetype($thumbnailLink);
  ---  successful 
  where $type = 2 // a .jpg file
  </code></pre>
  
  <p>Not sure what I need to do to gain a usable WebViewLink...  maybe use the "export" function to copy to a file on my server that is accessible, then use that exported file for the functions that fail above?</p>
  
  <p>Thanks for any help.</p>
  
  <p>John</p>