Search code examples
cdbusgdbus

Sending a byte array (type `ay`) over D-Bus using GDBus


I am trying to a byte array over D-Bus using the GDBus bindings. Can you please let me know how I can achive that. I tried googling but didnt help.

Byte array contains a image file so cannot be converted to charbytearray

Any help is appriciated


Solution

  • This question has some good ideas in the answers including for passing large amounts of data by writing the data to a file and passing the filename, or using a named pipe. Writing to a file and passing the file name might be the easiest to implement.