Re: How to retrieve an image from Riak using UGameDB

2015-05-12 Thread Bryan Hunt
Didn't realise Chris and Christopher had already replied to this. On 12 May 2015 13:25, "Bryan Hunt" 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

Re: How to retrieve an image from Riak using UGameDB

2015-05-12 Thread Bryan Hunt
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

How to retrieve an image from Riak using UGameDB

2015-05-10 Thread syed shabeer
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 retrie