I have a log file in WP8 which I wanted to save as image in camera roll so that client should be easily able to mail that to me and later I will again convert that to text log file.

This kind of functionality I have seen in Lync app of WP8.

I tried this but I don't think this is right approach.

string logdata = Logger.GetLogFile();
System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
byte[] byteData = encoding.GetBytes(logdata);
MediaLibrary ml = new MediaLibrary();
ml.SavePicture("image.png", byteData);
Can anyone help with this.