How to retrieve an image from Riak using UGameDB

Bryan Hunt bhunt at
Tue May 12 08:25:54 EDT 2015

Hi Syed. I can't comment upon UGameDB but generally speaking you will need
to set a content-type header indicating the mime type. For a JPEG image
that type would be image/jpeg for a PNG it would be image/png. Riak just
regards data as opaque blobs so it is probably defaulting to text/plain.
Take a look at the examples on the docs website -
On 11 May 2015 05:28, "syed shabeer" <shabeer.syed at> wrote:

> I am new to Riak and UGameDB, seeking help to retrieve image stored in
> Riak using UGameDB.
> I've used Bucket.Set(key,object) and inside the object i am passing an
> image.
> When i retrieve the key values using Bucket.Get(Key), i see the values in
> Please let me know the correct approach to retrieve the image.
> Thank you
> _______________________________________________
> riak-users mailing list
> riak-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list