You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When posting a byte[] message to the event hub, the input message that I receive at Azure function is of type char[] and not byte[] and I get errors. Changing the Cardinality as "One", I get proper byte[], but it is not what cx needs.
amamounelsayed
changed the title
Java runtime with Event hub and Binary datatype and Cardinality many
Java runtime with Event hub, Binary datatype and Cardinality many
Jul 7, 2019
Investigative information
When posting a byte[] message to the event hub, the input message that I receive at Azure function is of type char[] and not byte[] and I get errors. Changing the Cardinality as "One", I get proper byte[], but it is not what cx needs.
Example:
@functionName("EventHubCall")
public void eventHubProcessor(
@EventHubTrigger(name = "msg", eventHubName = "%eventHubName%",
connection = "eventHubConnection", dataType = "binary",
cardinality = Cardinality.MANY) List<byte[]> messages,
final ExecutionContext context)
Expected behavior
The messages.get(0) received back byte[]
Actual behavior
The messages.get(0) received back as char [] not byte[]
Known workarounds
N/A
Related information
Provide any related information
The text was updated successfully, but these errors were encountered: