As the official documentation shows, when accessing the MediaLibrary
and looping through the resulting Picture
list, there is no relative path, absolute path or filename for each image.
But there is access to date, name (description, if any) and a few other properties - so the solution is to generate your own filename when needed.
If we look at how the built-in Windows Phone Camera app and auto-upload to Skydrive feature works, my Skydrive camera roll has the following filenames:
- WP_20130716_001.jpg
- WP_20130716_002.jpg
- WP_20130716_003.jpg
The pattern above is very easy to see an reproduce (and replace WP with the name of your app):
- WP (underscore) ISO date format (underscore) image number
You may be tempted to use the name
property (ie. description) to generate a desktop-like filename but name
appears to be optional so it's blank most of the time, in my experience.