Thank you... its working fine... when i convert QString to QByteArray by means of fromHex(), it converts to QByteArray.
But when i save the image using the contents of QbyteArray, it will be black. Image maintains the dimensions , but saved image will be black..

Can anyone tell me how can i convert it to proper format???