Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2013

    Question 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.

    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.


  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    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: http://stackoverflow.com/questions/1...n-image-to-png

Similar Threads

  1. Any way to delete or not save camera captured image?
    By PhoneSoulPL in forum Nokia N9
    Replies: 1
    Last Post: 2011-11-25, 19:11
  2. how to capture image through camera in mobile and save.
    By sanjeevkate in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2010-09-07, 12:44
  3. how to save a image(captured from camera) to a file
    By sabera_mina in forum Symbian Media (Closed)
    Replies: 8
    Last Post: 2010-01-15, 10:23
  4. how to save image captured by camera
    By abdelbakiguesmi in forum Symbian Media (Closed)
    Replies: 17
    Last Post: 2009-05-29, 02:38
  5. how to save image taken by camera with bitmap
    By winsys in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-10-10, 05:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts