Raw ASCII values do not work as the existing datum.ParseFromString() function expects protobuf::Message encoded ASCII values.
s = 'my text'
d = Datum()
d.width = 1
d.height = 1
d.channels = len(s)
d.data.extend(s)
# maybe assign d.label
# put d into an lmdb or leveldb
Thanks for your response Jan.
I have determined that the first cursor_->value() call is ignored but is duplicated in the prefetch thread before cursor->Next() is called to move the cursor to the next image record.
which may unnecessarily slow things down.