Azure function ServiceBus binding does not support binary data type for python

Singh, Satyam 1 Reputation point
2022-05-19T09:15:57.8+00:00

I am sending gzip compressed stream data(bytes data) to servicebus session enabled queue.
In ServiceBus trigger function (python based), i am receiving message body and trying to decompress. But its failing and saying data is not of GzipFile file format. On debugging further found that received message body has different bytes data and not matching to that i sent on queue from servicebus producer client.

After searching for relevant posts, found below open issue related to above:

https://github.com/Azure/azure-functions-host/issues/3125

Let me know if anyone face similar issue and has solution for this.
FYI: i am using below version of core tools:

Python version 3.9.12

Azure Functions Core Tools
Core Tools Version: 4.0.3971 Commit hash: d0775d487c93ebd49e9c1166d5c3c01f3c76eaaf (64-bit)
Function Runtime Version: 4.0.1.16815

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
700 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.