When i create blobmessage object and print the inputstream, printed NULL, why??? then when i send the message the file not sending, the message sending empty.
Please may anybody help me?? Here is code: conn = (ActiveMQConnection)cf.createConnection(); session = (ActiveMQSession) conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Destination destination = new ActiveMQQueue("Queue"); MessageProducer producer = session.createProducer(destination); BlobMessage message = session.createBlobMessage(new File("src\\BlobMessage\\file\\foto.jpg")); System.out.println(message.getInputStream()); producer.send(message); Ing. Iósev Pérez Rivero Dirección Técnica - IP Universidad de las Ciencias Informáticas