blobstore

Send large files to GAE Blobstore via API (from S3)

淺唱寂寞╮ 提交于 2019-12-11 09:09:27
问题 I'm trying to send large files (50MB-2GB) that I have stored in S3 using filepicker.io to the Google App Engine Blobstore (in Python). I would like this to happen without going through a form on the client browser as it defeats the project requirements (and often hangs with very large files). I tried multiple solutions, including: trying to load the file into GAE with urlfetch (but GAE has a 32MB limit for requests/responses) constructing a multi-part form in python and sending it to

What is the syntax to get a Blobstore upload url from Android?

一世执手 提交于 2019-12-11 07:07:20
问题 I have Blobstore uploads working for GWT, but now I need my Android app to upload to Blobstore. I saw this post which explains how to upload once I have the URL, but it does not show getting the URL: Using Google BlobStore with an Android application My questions are: what URL do I send the get to? what is the syntax of the get for blobstore? Thanks 回答1: I have it like this: Widget.presenter.java: uploadButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event

Uploading file via form into GAE from Android

时光怂恿深爱的人放手 提交于 2019-12-11 05:42:00
问题 I have an app on GAE at: http://1.myawesomecity.appspot.com/ FIXED: HttpPost post = new HttpPost("http://1.myawesomecity.appspot.com/"); http_client.getParams().setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); String result = EntityUtils.toString( http_client.execute(post).getEntity(), "UTF-8"); String actualURL = result.substring(result.indexOf("http://"), result.indexOf("\" method")); Log.w("asdf", "url " + actualURL ); post = new HttpPost(actualURL); http_client

Google App Engine - Busting Serving URL Cache

让人想犯罪 __ 提交于 2019-12-11 03:57:53
问题 I've finally managed to get images to rotate properly on App Engine, now I'm struggling to get around images being cached and the standard cache busting techniques doesn't do anything. So the first time I rotate the image, I get a different URL back and the image is rotated. The second time I rotate it, I get the same URL back, only after appending =s300-c does the image rotate, the third time I rotate, I need to change that =s300-c to -s301-c in order to see the new image. If I go back to

Serving files from BlobStore in GAE

纵然是瞬间 提交于 2019-12-11 03:35:01
问题 I want to ask if I can download files from the blobstore in google app engine (zip files especially) without using the handlers(class handlers). I mean serve files directly without downloadhandler class usage. Have any idea?? 回答1: No. (if I understand the question properly) There is no direct URL for blobstore items, so you can't get at them directly. However you can serve blobs from URLs that you define with less than 10 lines of code. EDIT: The send_blob also takes a save_as argument. Try

Does appengine-mapreduce have a limit on operations?

亡梦爱人 提交于 2019-12-11 01:35:28
问题 I am working on a project that requires a big knowledgebase to be constructed based on word co-occurrences in text. As I have researched, a similar approach has not been tried in appengine. I would like to use appengine's flexibility and scalability, to be able to serve the knowledgebase and do reasoning on it to a wide scale of users. So far I have come up with a mapreduce implementation based on the demo app for the pipeline. The source texts are stored in in the blobstore as zipped files

How to upload a file using the BlobStore in Python App Engine?

给你一囗甜甜゛ 提交于 2019-12-11 00:53:32
问题 I did everything specified in the documentation of app engine but i couldn't get the blobstore work. Maybe some of you can detect what i am doing wrong. When i clicked the submit button This kind of a url is seen in the address bar and an empty white page is in front of me. http://localhost:8080/_ah/upload/agltb2JpbHNvcnVyGwsSFV9fQmxvYlVwbG9hZFNlc3Npb25fXxg9DA Does anyone have a suggestion? These are my Handlers : class MainHandler(webapp.RequestHandler): def get(self): years = Years.all()

Google appengine blobstore upload handler processing extra form post parameters

给你一囗甜甜゛ 提交于 2019-12-10 18:02:22
问题 I wish to have a file upload form that in addition to the file selection input , also has other input fields like textarea, dropdown etc. The problem is that I cannot access any post parameters other than the file in my blobstore upload handler. I am using the following function call to get the parameter name but it always returns an empty screen. par = self.request.get("par") I found another question with a similar problem Uploading a video to google app engine blobstore. The answer to that

How to download a file with its original filename from GAE's blobstore?

狂风中的少年 提交于 2019-12-10 16:24:21
问题 Once you upload a file to the blobstore, it renames it something like "s9QmBqJPuiVzWbySYvHVRg==". If you navigate to its "/serve" URL to download the file, the downloaded file is named this jumble of letters. Is there a way to have the downloaded file retain its original filename when uploaded? 回答1: When the file is uploaded using the BlobUploadHandler the original filename is stored as name property in the newly created BlobInfo entity. In the blob serve handler, you can specify that the

Upload a file in Google App Engine and making it downloadable

半世苍凉 提交于 2019-12-10 15:58:15
问题 I am new with google app engine and I want to use it as a server to enable people download a file. I have gone through the tutorials in python. I didnt find anything to actually guide me how to upload files to the server for this purpose. 回答1: The Blobstore tutorial gives an example for just this use case. That link provides this code: an application that lets users upload files and then immediately download them: #!/usr/bin/env python # import os import urllib from google.appengine.ext