On 21/07/2020 7:40 am, umohank wrote:
Hi,
Can someone suggest me best method to transfer the file using QPID Messaging
C++(AMQP) API?
In general(TCP), we do copy (char buffer)data chunk by chunk and send data
until reaches end of the file, is that the same approach need to follow or
any other method to do the same.
Can we send the complete file in one shot?
If yes, what is the max size can be send?
If multiple sender publishing data to one queue chunk by chunk,
how consumer serialize the data of respective file data.
and please do share the snippet for file transfer example.
There is no specific support for this in the qpid messaging api. You
would need to accumulate the data in memory before sending the message
once you have loaded it all.
The maximum size will be determined by the server/broker you are
connected to.
You can alternatively send it as multiple messages. The approach there
would depend on the server and the communication pattern (e.g. if you
have multiple potential consumers and need to make sure the same one
gets all the pieces, plus ensure ordering etc)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org