Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

223
Views
How to download to server rather than client a Google drive file converted to PDF?

I am using "The Google Picker API" with asp.net web application to retrieve a file saved in Google drive and convert it to PDF using google export, then I want to save the PDF file to web server I am getting the download link of Google drive file converted to PDF in this format

https://docs.google.com/spreadsheets/d/**an-id-here***/export?format=pdf

The link is working fine and I'm getting the file downloaded.

But I want to save the file to my wb server using a http handler which I am calling from javascript When I send the download link to the Htpp handler, the file saved to the server is corrupted But when I use a url like this one http://www.africau.edu/images/default/sample.pdf the file is saved correctly to my web server

I'm using this code to save the pdf fil into the server

Using client = New System.Net.WebClient()
            client.DownloadFile(url, tofile)
End Using

My question is:

  • is there a way to get url for the pdf file rather then a download link
  • Or if not possible, is there a way to save the file into the web server using this download link ?
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!