回答
通過遠程API Blob存儲訪問加入三天前:
- 遠程API現在支持Blob存儲API。 (Changelog)
remote_api的工作在數據存儲的最低水平 ,所以一旦你設置 了存根,您不必擔心 的事實,您在遠程數據存儲上操作 :如果您正在直接訪問數據存儲 ,有幾個 注意事項,它的工作原理與 完全相同。 (App Engine Help)
但是沒有辦法從代碼上傳對象到blobstore。 – 2010-08-20 14:15:11
我的意思是我只能從blobstore中讀取blob,並且不能將它們放在那裏。 – 2010-08-20 14:16:09
我無法嘗試,我無法訪問Blobstore。 – leoluk 2010-08-20 15:04:07
我曾經解決了以編程方式上傳到blobstore的問題,並在我的博客上爲它寫了一個簡短的教程/解釋。希望這是有用的:http://swizec.com/blog/programatically-uploading-to-blobstore-in-python/swizec/1423
有新的文件API更好的解決方案:http://code.google.com/appengine/docs/python/blobstore/overview.html
這很適合我。這裏是一些示例代碼:
from __future__ import with_statement
from google.appengine.api import files
from google.appengine.ext import blobstore
def get_blob_key(self, data, _type):
# Create the file
file_name = files.blobstore.create(mime_type = _type)
# Open the file and write to it
with files.open(file_name, 'a') as f:
f.write(data)
# Finalize the file. Do this before attempting to read it.
files.finalize(file_name)
# Get the file's blob key
blob_key = files.blobstore.get_blob_key(file_name)
return blob_key
- 1. 使用urlfetch上傳到blobstore
- 2. 上傳數據到遠程數據庫
- 3. 使用curl將文件上傳到遠程api
- 4. 將遠程照片上傳到上傳
- 5. 上傳到Blobstore而不使用blobstore.create_upload_url
- 6. Blobstore使用javascript上傳
- 7. 將文件上傳到blobstore數據存儲
- 8. 通過HTTP請求將二進制數據上傳到AppEngine Blobstore
- 9. 將100萬張圖片上傳到BlobStore
- 10. 將文件從blobstore上傳到Google Drive
- 11. 將圖片從iPhone上傳到GAE blobstore
- 12. 如何將JSON數據發佈到遠程API使用Coldfusion CFHTTP
- 13. 我可以使用遠程API從AppEngine BlobStore讀取
- 14. 文件上傳到AppEngine Blobstore
- 15. 如何使用MediaHttpUploader將圖像上傳到BlobStore?
- 16. 如何使用goog.net.IframeIo在Python中將文件上傳到Blobstore?
- 17. 如何使用angularjs將文件上傳到blobstore?
- 18. PHP的ftp_fput無法將數據上傳到遠程服務器
- 19. Android:使用php腳本將圖像上傳到遠程MySql數據庫
- 20. 使用Java API將數據上傳到HDFS
- 21. 使用COPY將數據上傳到RedShift
- 22. 將一個包上傳到遠程Karaf
- 23. 使用Django-nonrel和文件傳輸應用程序上傳到blobstore的圖像
- 24. Blobstore上傳+ Ajax/Alternative
- 25. Blobstore上傳與AsiHttpRequest
- 26. 如何將android數據上傳到遠程服務器(數據庫)?
- 27. Android ..如何將數據從android手機上傳到遠程數據庫?
- 28. 以編程方式將圖像上傳到谷歌應用程序引擎blobstore
- 29. 將數據從遠程傳感器傳遞到服務器
- 30. 使用php curl將zip文件上傳到遠程服務器
我會建議使用Python MultipartPostHandler。 – DocWiki 2011-07-05 01:08:47