Andras Csehi
Andras Csehi

Reputation: 4305

Access network share from Store app

StreamReader and HttpClient can't access network share path. Is it possible to access a file on LAN network from Windows Store app?

Upvotes: 0

Views: 519

Answers (1)

Pierre Henri K
Pierre Henri K

Reputation: 278

A Windows Store app has two ways to access a network file:

  1. Use HomeGroup to access the pictures, music, and videos libraries. As long as you have declared the capabilities, you can perform this without user input. But it is limited to these libraries. You can also access the documents library, but it is heavily policed in the store certification.
  2. Use the FilePicker to ask the user to pick the file. This requires user input but allows access to any file that the user can access.

The article Quickstart: Accessing HomeGroup content has a few more variations of these options.

Upvotes: 1

Related Questions