You can also simply include the filename in the csv, and make the
converter function "lambda x:open(x,'rb').read()".

-Nick Johnson

On Mon, Jul 6, 2009 at 12:57 PM, Tim Hoffman<zutes...@gmail.com> wrote:
>
> Hi
>
> You can put images in your csv programtaically.
>
> base64 encode them (you will need to increase the max field size in
> the csv reader)
>
> then in your handler base64 decode them and the db.BlobProperty the
> string.
>
> is
>
> myobj.image = db.BlobProperty(b64decode(val))
>
> I am round tripping polymodels via remote_api between production and
> dev instances.
>
> Rgds
>
> Tim
>
> On Jul 6, 7:23 pm, Albert <albertpa...@gmail.com> wrote:
>> Hi!
>>
>> This might be obvious, but I'm not completely familiar with CSV's.
>>
>> I've tried the bulk uploader tool through the remote_api, and I've
>> been successful at uploading some entities already.
>>
>> However, this time, the entity has an image (db.BlobProperty())
>> property. I have no idea how to insert the image files/data into the
>> CSV. So that I can upload the data through the bulk uploader tool.
>>
>> I tried Microsoft Excel, but I cannot insert an image into a single
>> cell (lol).
>>
>> Does anyone have an idea on how to achieve this?
>>
>> Thanks!
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to