Save log file as Image in camera roll
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.
[QUOTE]string logdata = Logger.GetLogFile();
System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
byte byteData = encoding.GetBytes(logdata);
MediaLibrary ml = new MediaLibrary();
Can anyone help with this.
Re: Save log file as Image in camera roll
Using PNG is a good idea as it is a lossless format, but you should really create a bitmap and a valid PNG file, otherwise MediaLibrary will not support it.
Some libraries and API-s you can experiment with are listed here: [url]http://stackoverflow.com/questions/14023169/windows-phone-8-how-to-convert-an-image-to-png[/url]