I am new to Windows Phone 8 development. Would like to know if there is a way to store a file received to a particular location on device. It could be using an API, through ActiveSync or MDM.
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Windows Phone 8 doesn’t allow for free-for-all direct access to the user’s hard-drive to read or write files. You’ll have to use usecase specific APIs depending on the type of media you’re trying to store. I’ve answered a similar question in the past regarding WP8’s read-write access for known file types @ Windows Phone 8: Media file access
A few highlights:
Your app can use IsoStore to read & write files only accessable to your app. See IsolatedStorageFile API or ApplicationData.Current.LocalFolder API for that.
You can store pictures using MediaLibrary.SavePicture or MediaLibrary.SavePictureToCameraRoll methods.
You can store songs using MediaLibraty.SaveSong method.
Other then those APIs I’m not familiar with any other file write APIs to the OS from the top of my head. You can probably use a remote server, but that’s pretty much it.