Reading zip files stored in GAE Blobstore

I followed the sample code below to upload a zip file to blobstore. I can download the zip file, but I have some problems reading the file.

Sample code http://code.google.com/appengine/docs/python/blobstore/overview.html#Complete_Sample_App

There are 6 CSV files in my zip file, in which my system will read the files and import the values ​​into the data warehouse. However, I know that there are some restrictions on reading a file, which should be less than 1 MB.

Can someone tell me how I can read a zip file and process a CSV file? What happens if my data stored in blobstore is larger than 1 MB?

Hope to hear from you. Thank you

+3
source share
1 answer

Individual API calls for the blobstore API should be less than 1 MB, but you can read as much data as you want with multiple calls. See this blog post for an example of using BlobReader to read the contents of a zip file from blobstore; It is written using Python, but BlobReader is also available in the Java SDK, and the same method applies.

+2
source

Source: https://habr.com/ru/post/1772253/


All Articles