使用GDBus通过D-Bus发送字节数组(类型为"ay") [英] Sending a byte array (type `ay`) over D-Bus using GDBus

查看:399
本文介绍了使用GDBus通过D-Bus发送字节数组(类型为"ay")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用GDBus绑定在D-Bus上创建字节数组.能否请让我知道我能做到这一点.我尝试了Google搜索,但没有帮助.

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.

字节数组包含一个图像文件,因此无法转换为charbytearray

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

需要任何帮助

推荐答案

这个问题在答案中有一些不错的主意包括通过将数据写入文件并传递文件名

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.

这篇关于使用GDBus通过D-Bus发送字节数组(类型为"ay")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆