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

Is there any way to do VirtualDisk.OpenDisk() with a stream as input? #284

Open
NickHarmer opened this issue Jun 2, 2023 · 1 comment
Open

Comments

@NickHarmer
Copy link

The VirtualDisk class has static OpenDisk() methods which accept a file path as input. I have a use case where I don't necessarily know the disk type, but I only have a stream, not a file path.

Is there any way to use the convenience OpenDisk() method with a stream rather than a local file?

@LTRData
Copy link

LTRData commented Jun 4, 2023

The path based VirtualDisk.OpenDisk methods are based on recognizing image file format using file name extensions, not image file contents. Therefore, there is no similar detection logic for Stream based overloads, image file format needs to be determined already before that call.

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