Is there no way to directly store binary content through CloudDB?

So, CloudDB uses Redis, right? And they can directly store binary content:

But every time I store an image, it gets automatically converted to a Base64 string. Although I'm using the Image Picker and sending that to the CloudDB. So it might be the Image Picker performing the Base64 conversion and not CloudDB itself, not exactly sure.

So what's the strat here? Would a custom extension be possible for this?

AI2 does the conversion to and from base64 on the way in and the way out. This is because Redis works with strings.

Why do you need to "store" binary data ?

Because it's more efficient? Converting to and from base64 just adds extra work that I don't need. Also, a base64-encoded string of an image will always be larger than just the raw image. If Redis supports raw binary data, why not utilize it?

Hmmm, I am not sure where you get this idea from. Everything I read tells me that Redis is an in memory, key:value data store, nothing about storing binary data. Even your link provides not method for storing binary data objects in a redis database, it just talks about binary data in a techy way...:wink:

I could be wrong, but I believe you have the wrong end of a stick?

Regardless, to answer your topic question, I do not believe there is a way to directly store binary content through CloudDB.

It is possible to directly store an image as a blob in Redis.

Right, but has it been done in AI2 before?