message queue problem

I am sending and retriving the message to the queue

the problem is

after retrieving the message can i see what is there in my message queue.
(actually in my application i am encountring some garbage value)
so i want to retieve this garbage value and also want to know its size

how can i do this