Upload a large blob from Appengine blobstore to Google Drive using Python using Drive SDK -


the python drive api requires "local file" perform resumable file upload google drive, how can accomplished using google appengine has blobs , no access local file system.

under old doclist api (now depreciated) upload files google appengine blobstore google drive using code below:

    chunk_size = 524288      uploader = gdata.client.resumableuploader(     client, blob_info.open(), blob_info.content_type, blob_info.size,  chunk_size=chunk_size, desired_class=gdata.docs.data.docsentry) 

the key part using blob_info.open() rather providing reference local file.

how can accomplish same using new drive api?

note files big resumable upload required, know can accomplished in java looking python solution.

many thanks, ian.

it looks using older gdata client library , documents list api. if use new drive sdk , google apis python client library, can use mediaiobaseupload class create media upload object memory instead of file.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -