Hi All,
I'm new to the DFA API and have a dumb question that I am hoping someone can help me with - I am able to get the links to download files successfully eg.:
{
"kind": "storage#object",
"id": "dfa_-065ae7332a9d60c7b84892abbe1eaa474d268109/NetworkClick_8984_01-01-2014.log.gz/138862818193000",
"name": "NetworkClick_8984_01-01-2014.log.gz",
"bucket": "dfa_-065ae7332a9d60c7b84892abbe1eaa474d268109",
"generation": "1388628181930000",
"metageneration": "1",
"contentType": "application/zip",
"updated": "2014-01-02T02:03:01.929Z",
"size": "15855",
"md5Hash": "Rn67l52ZSRy0UZ+f7X21/g==",
"owner": {
"entity": "user-00b4903a977ace082fbdea3a84f04b3bba5c0eb7cca47701139b65a37d066911",
"entityId": "00b4903a977ace082fbdea3a84f04b3bba5c0eb7cca47701139b65a37d066911"
},
"crc32c": "TK7UQQ==",
"etag": "CJCgiYyz3rsCEAE="
}
But when I get the media link, I get content that says is application/zip but I when I try to decompress it I keep getting invalid zip messages. I have tried application/gzip, application/octet-stream etc. and the data coming back doesn't seem to be valid (I thought it was chunked initially but am ensuring I get the entire content back).
zipfile.BadZipfile: File is not a zip file is the error I keep getting back. Is there an easier way to get this file?
thanks a lot for your help in advance!
thanks,