python document storing?

Dan Reverri dan at
Fri Jul 30 03:30:22 EDT 2010

Hi Bob,

Sorry for not getting back to you sooner. To store binary data with the riak
python client use the bucket.new_binary method. There are no functions that
operate directly on files so you will have to read the file and pass the
contents of the file as the data of the riak object. Here is an example of
how one could read a file and store the data in Riak:


Daniel Reverri
Developer Advocate
Basho Technologies, Inc.
dan at

On Wed, Jul 7, 2010 at 11:55 AM, robert schaefer <rps at>wrote:

> Hello all,
> New question...
>  I would like to store and retrieve binary and/or text documents using the
> riak python client.
>  Would I open the file and load it to a myarray variable and then
>  Or is there something in the riak-python-client that can directly operate
> on files, like"my_key":"myfile.txt")?
> bob schaefer
> -----------------------------------
> robert schaefer
> Atmospheric Sciences Group
> MIT Haystack Observatory
> Westford, MA 01886
> email:  rps at
> voice:  781-981-5767
> www:
> _______________________________________________
> riak-users mailing list
> riak-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list