Tanuja Gupta Tanuja Gupta - 4 years ago 119
Java Question

Reading CSV File from IBM MQ

What I am trying to achieve is to read a

csv
file from the queue through a java application. I would like to know if the data in queue is stored as a byte or the
csv
file is uploded directly.

Answer Source

MQ does not care what you put in the message body. It can be simple text, stream of bytes, some structured data etc. So it's all up to the application how it wants handle the message body. The message body will be stream of bytes but MQ can convert the bytes to text format.

MQ on it's own does not send/receive files. Your application has to read data from the file into a buffer, set the buffer as message body and send the message. On the receiver side, your application has to receive message, retrieve the message body and write it to a file.

You can also look at MQ Managed File Transfer product.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download