decryption of image using silverlight

first for doing this i did select a .jpg file from open file dialog box .this image is shown in picturebox . then for encryption convert this image from picture box in byte form . show this byte form of image in textbox by converting from byte tostring . it is okk . but for decryption of image i want that first retrieve encrypted image text from textbox then decrypt it and shown original image in my new picture box ...........plz give me a code for decryption of image from textbox ............thanks in advance

Responses

When you convert a byte[] of an image to string, what you did you corrupted the byte array , so it will never work as an complete image again , so normally in silverlight you will get an error when trying to retrieve an image from it and the image source property of an image control will not accept it because it is corrupt.