@Override
    public void fromMessage(Message message) throws JMSException {
        try {
            inputStream = ((BlobMessage) message).getInputStream();
        } catch (IOException e) {
            logger.error("Can't get input stream.", e);
        }

    }