I am trying to write image ( .png/.jpeg/...etc) files to aerospike. From aerospike documentation (https://docs.aerospike.com/server/guide/data-types/blob) I understand that this can be achieved using blob data type. However there is no documentation on using blob data type in C API library (https://docs.aerospike.com/apidocs/c/, https://developer.aerospike.com/client/c) or in aql. I know writing other data types (like int, string, CDT..etc) to aerospike using C API library but using blob data type I am not getting from where to start. Can someone help with documentation on using blob data type in aerospike C API library.
Storing images using Blob data type in aerospike
99 Views Asked by Gopi At
2
There are 2 best solutions below
Related Questions in IMAGE
- Golang lambda upload image into s3 static website
- Put an image behind the title in a WP, WooCommerce "shop" page
- How to create an JSOUP element from byte array image (Load from Database)
- Cloudflare not respecting Cache-Control
- Sending multiple images and data in a single angular observable
- Create and combine several images into a single image for my react native App
- Should I compress images in java backend before sending to frontend?
- Javascript Place Image Where User Clicks
- Whitespace in document has a bottom border remnant or some other line at the bottom of the whitespace
- Sony Spresense Camera Board
- After completely installation and done all the work i am getting Permission denied error do any one have solution
- HTML page on NAS server image not showing on mobile phone
- mouse coordinates in image go below 0 and above width
- Why are the css images or js not loading in my laravel project?
- Python pillow library text align center
Related Questions in BLOB
- Out of memory while adding documents to a Firebird BLOB field with Delphi
- Data migration from Oracle Database Clob to GCP Bucket
- want stand logic app or function app (not premium) to connect to a blob storage which is under a vnet. How to achieve this?
- Is it possible to open a blob without saving it to file
- How do I add various document types to a Firebird BLOB field with Delphi
- Embedded pdf-file to blob with Python Selenium
- Sending an image (png) from my back (Java spring) to the front (react) and printing it
- SQLite query not returning expected results despite correct hashing and comparison in Android application
- display image in react as png/jpg went wrong
- Undeleting an Azure Blob Using a REST API Call from PowerShell
- How to pass multer file data into LangChain.js WebPDFLoader correctly?
- React-native 'name is null' when playing Sound from a fetched file
- Logic app blob trigger retry policy not working for 503 error
- What is the Right way to pass credentials to python libraries like adls-fsspec?
- Broken uploaded images in Vercel Blob via Express JS
Related Questions in AEROSPIKE
- aerospike spark connector for inserting large data sets
- POP UP any data from aerospike without key?
- Unrecognized Field in Dropwizard config.yml File while connecting aerospike
- Aerospike Memory Calculation for multiple Sets
- How to use aerospike as cache in Spring boot data jpa project with mysql and pgsql as datasources?
- Are connections in connection pool closed in Aerospike after we close the parent connection?
- Aerospike client timeout error : timeout=0 iterations=3 failedNodes=3 failedConns=0
- NPM Install is not working(with direct Aerospike dependency) with Node 18.15.0 and NPM 9.5.0 In Graviton machine (Arm64)
- Is it ideal to run two aerospike instances on the same server box?
- Replacement for PredExp on a list bin
- PredExp vs Expression - Aerospike Client (list of integers)
- How to achieve Transactional with Spring-boot-aerospike as we are updating mutliple sets in a request
- Not Equals Replacement for Aerospike
- Aerospike java client RecordSet next function hang for infinite time after query a set
- How to use aerospike to generate a unique auto-incrementing ID,like redis
Related Questions in C-API
- How can you get the numpy datetime64 resolution from an array using the C api?
- How to call a method of a module properly in ruby C-api?
- How to properly call an object method in ruby C api?
- parse table from c to lua
- lua_resume has segmentation faults
- Linker not finding ruby symbols (such as ruby_init) when trying to compile C program which uses libruby.so
- Tensorflow 2.x: call model inference using C/C++ API from inputs, allocated in GPU memory
- FMUchecker - [FATAL][FMICAPI] Could not load the DLL:
- Call Python Multiprocessing module from C/C++ cause adding new processes infinitely
- Transfer/ Unbox Julia's DataFrame objects and use as C++ object
- Issue with generated_plugin_registrant.cc and c_api when adding windows plugin to existing flutter plugin projet
- Get a File Pointer from a Tcl_Channel using the Tcl C API
- No error on socket though the bound network interface doesn't exist anymore
- How to free ruby object allocated through rb_marshal_load through C api?
- Crash when trying to call ruby regex from c code
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As answered by @pgupta as_record_set_bytes() can be used to write bytes to aerospike. C code snippet to write is as follows:
Bytes can be retrived using as_record_get_bytes(). as_bytes can be converted into uint8_t* type using as_bytes_copy(). C code snippet to read is as follows:
Detailed description of each of the aerospike functions can be found at C API Client Aerospike documentation (https://docs.aerospike.com/apidocs/c/index.html).