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

Default permission with FileSource #8

Closed
tsawyer999 opened this issue Oct 16, 2018 · 1 comment
Closed

Default permission with FileSource #8

tsawyer999 opened this issue Oct 16, 2018 · 1 comment

Comments

@tsawyer999
Copy link

tsawyer999 commented Oct 16, 2018

Hello jogibear9988,

Is it possible to specify the read file access when opening a file stream? By default, I suspect it opening the file in ReadWrite causing an exception when the application is located inside of program files.

From SVGImage/SVGImage/SVG/SVGImage.cs at line 63

Replacing

((SVGImage)d).SetImage(new FileStream(e.NewValue.ToString(), FileMode.Open));

To

((SVGImage)d).SetImage(new FileStream(e.NewValue.ToString(), FileMode.Open, FileAccess.Read));

Thank you!
Sebastien

@tsawyer999 tsawyer999 changed the title Default permission with Default permission with FileSource Oct 16, 2018
@jogibear9988
Copy link
Member

will do

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

No branches or pull requests

2 participants