I had byte array which was derived from an image , then this array text was encrypted to be saved in database, I want to retrieve this text decrept it then transfer it to byte array again to retrieve the image , how can this be done?
I think you are talking about you open image in a text editor. So, in this case, you only see the characters sequence. This encrypted code. There are various methods: JPEG, ZIP, etc. If you want to decrypt, you need to know the key (if the encrypt algorithm is two-ways).
i found good article regarding your requirement about encrypt and decrypt byte[] data. go to this good article explain about simple concept on crypto of byte[] data .. Also adding to this you can use microsoft crypt lib for more and secure crypt algorithms