How to retrieve an image from Riak using UGameDB

Bryan Hunt bhunt at basho.com
Tue May 12 08:30:29 EDT 2015


Didn't realise Chris and Christopher had already replied to this.
On 12 May 2015 13:25, "Bryan Hunt" <bhunt at basho.com> wrote:

> 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 -
> http://docs.basho.com/riak/latest/dev/using/basics/
> On 11 May 2015 05:28, "syed shabeer" <shabeer.syed at gmail.com> 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
>> ASCII.
>> Please let me know the correct approach to retrieve the image.
>>
>> Thank you
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150512/0f772a68/attachment-0002.html>


More information about the riak-users mailing list