Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get a byte aray payload when using weh-hook's publish action #294

Open
alwyngo opened this issue Nov 28, 2021 · 1 comment
Open

Comments

@alwyngo
Copy link

alwyngo commented Nov 28, 2021

What I config in emqx_web_hook.conf is like
web.hook.rule.message.publish.2 = {"action": "on_message_publish", "topic": "foo/#"}
When the server receviced the map data, the payload field's type is String not a byte array, the message is messy code like this ���f}����@@@, what can I do to get a byte array payload?

@alwyngo
Copy link
Author

alwyngo commented Nov 28, 2021

if possible to accept it with ByteBuffer or other data type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant