Support Topics Documentation Slack YouTube Blog

Passing file in pub and sub message

Is it possible to add file to pub/sub messaging.

I mean let say a user is chatting with another user and then he decides to send image files or documents or video or even and audio file is this possible with pub/sub message.

Hello @Yomade_Stephens

You can upload that file into the Files and then pass a link to the file in a PubSub message as a header.
Or you can try to convert the file into base64 string and then send it as a message header.

Regards, Vlad

How do I send as a message header.

here you go https://backendless.com/docs/android/pubsub_publish_with_headers.html