Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8576273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:53:22+00:00 2026-06-11T19:53:22+00:00

I am using Google documents api. DocsService service = new DocsService(APP_NAME); service.query(qry, DocumentListFeed.class); List<DocumentListEntry>

  • 0

I am using Google documents api.

DocsService service = new DocsService(APP_NAME);
service.query(qry, DocumentListFeed.class);
List<DocumentListEntry> docEntries = docFeed.getEntries();
for(DocumentListEntry entry : docEntries)
{
   System.out.println(entry.getQuotaBytesUsed());
}

I am using the above code to get size of the document.

If I upload a document to Google, I am getting the size.
If I create a document/spreadsheet/drawing/presentation/form, I am getting zero as size.

I need solution for the below questions.
1. How to get proper file size of the created Google documents
2. How to differentiate spreadsheet and form.? Both I am getting entry.getType() as spreadsheet.

Please any one help me.
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:53:23+00:00Added an answer on June 11, 2026 at 7:53 pm

    1) Google Documents do not use any storage quota on the user’s account therefore the reported size will always be zero

    2) The Documents List API will will include the element <docs:hasForm value='true'/> in the xml response when requesting a form, however, that value is not exposed by the Java client library. You should update to the newer Drive API and then check the MIME type of the item, which will be application/vnd.google-apps.form for a form and application/vnd.google-apps.spreadsheet for a spreadsheet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How about using this API? developers.google.com/google-apps/documents-list It seems to be able to access the
I'm using Google Docs List API for fetching documents such as .doc, .txt and
I am trying to upload, download documents and spreadsheets using Google Documents List Data
I tried using the Google Document List API https://docs.google.com/feeds/default/private/full?max-results=100&showfolders=true for fetching list of all
I am using google documents API. I need to implement pagination. I used like
Since Google Documents List API Version 3.0, there is now no separate Java guide
Im trying to simply create a new document using the Zend Google Docs API's
I have been working with the google docs api found here: https://developers.google.com/google-apps/documents-list/#introduction This issue
I want to create an Android client app for Google Documents List API, taking
By using the following tool oAuth Playground , and following the documentation Google Documents

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.