Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a constructor to Document to handle stream by himself #14

Open
aloisdg opened this issue Apr 26, 2015 · 0 comments
Open

Add a constructor to Document to handle stream by himself #14

aloisdg opened this issue Apr 26, 2015 · 0 comments

Comments

@aloisdg
Copy link
Owner

aloisdg commented Apr 26, 2015

Something like this would be great :

public Document(string fullName)
{
    // convert fullName to stream and do stuff
}

We could use PCL Storage but it seems that they didnt implement the code needed for portable class. I tried this :

private static async Task<Stream> OpenAsync(string fullName)
{
    var file = await FileSystem.Current.GetFileFromPathAsync(fullName);
    return await file.OpenAsync(FileAccess.Read);
}

I will look into it later. If someone knows an alternative, I am listening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant