1. Ray Adams's Avatar
    Just want to open this thread to inform developers in case some of you don't know about it or just starting to develop application.

    There is a bug in MediaLibrary.SavePicture function. After executing, MediaLibrary leaves a file in your IsolatedStorage with the name of your picture plus ".jpg" extension.
    For example if you save your image like this
    using (var m=new MediaLibrary())
        m.SavePicture("New image.jpg",imageStream);
    You will get file with name "New image_jpg.jpg" in IsolatedStorage. .jpg will be converted to _jpg. It seems developers of WP just trying to fix file name when developer send it as .png or any other extension. Not the elegant way to check actual extension for file, but let it remains on their conscience.
    So the best way in this situation is to delete this file to save space on phone. If your application utilizes SavePicture a lot, this could be a problem as your "Other" storage will increase :)

    Another suggestion is give the name for your image with .jpg attached, not "My Picture" but "My Picture.jpg" or when other applications read Media library they receive image name without extension which could be a problem if application later search media library by file name.

    Microsoft is aware of this bug, but who knows when they fix it.
    Laura Knotek likes this.
    07-24-2013 12:51 PM
  2. Laura Knotek's Avatar
    Thanks for sharing this information. It should be helpful to developers here.
    07-24-2013 09:01 PM
  3. RiseUpGames's Avatar
    I'm not sure, but this may be fixed with GDR2. There are actually quite a few bugs with that function that will supposedly be addressed by GDR2, but I haven't been able to verify it yet since T-mobile is lagging with their update ^_^
    07-24-2013 09:05 PM
  4. Ray Adams's Avatar
    I hope they fix it in GDR2. I have it on my 8X (still with me even with 920 on hands) and can test it.
    07-25-2013 03:54 AM

Similar Threads

  1. Are Lumia Exclusive apps good for WP?
    By Deficiency in forum Other Operating Systems
    Replies: 58
    Last Post: 08-07-2013, 10:34 PM
  2. Developer unlocked 920
    By ejb222 in forum Windows Phones
    Replies: 3
    Last Post: 07-26-2013, 09:38 PM
  3. A New Phablet with 41MP Camera Coming in Holiday Season?
    By Yangstax in forum Windows Phones
    Replies: 20
    Last Post: 07-26-2013, 01:53 PM
  4. Is there a way for Automatic/Scheduled Flight Mode
    By Rowan2013 in forum Other Operating Systems
    Replies: 2
    Last Post: 07-24-2013, 08:42 AM