0
我想知道,如何將文件從內存上傳到Flickr。 我正在使用Python Flickr API套件(http://stuvel.eu/flickrapi)。 內存中的文件是否有可作爲文件名傳遞的路徑?Django。如何將文件從內存上傳到flickr?
代碼
response = flickr.upload(filename=f.read(), callback=None, **keywords)
錯誤提前
TypeError at /image/new/
must be encoded string without NULL bytes, not str
感謝
謝謝!我試過了,但GAE禁用了tempfile。可能我必須更改實施,以使其適用於Google App Engine。 – ipegasus
我沒有想到這一點。 –
看起來像是有一些臨時文件的外表......有了這項工作嗎? https://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/dist/tempfile.py?r=233 – Tombatron