Reputation: 1180
I'm using python and django framework! How to store images into Cassandra database using cql engine? And how can i display this images in an image_tag?
Upvotes: 3
Views: 940
Reputation: 841
To move binary data in and out of cassandra with cqlengine, you'll want to use the Bytes column.
To expose the image via an <image/>
tag, you'll probably want to setup a view that returns the saved binary data, and set the mimetype on the django response.
Upvotes: 1