-
Notifications
You must be signed in to change notification settings - Fork 631
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
How to read a dicom file from network stream #1698
Comments
Agree, unseekable streams are already implemented in development branch. Could you verify, when using the latest development-code, that opening the file from networkstream actually works? |
I use HttpClient.GetStreamAsync(url) to get the stream, but the stream not support get the length。So the stream returned by the GetStreamAsync method cannot be used directly to open a DICOM file。 |
Ah ja, the UnseekableStreamByteSource assumes, that seeking is not supported. But this stream not even supports the Length property, which is even worse. |
it will throw an exception : NotSupportedException: Specified method is not supported
Does fo-dicom supports opening a DICOM directly from a network stream ? I saw "UnseekableStreamByteSource" in the source code, which seems to be used to read DICOM data from network streams ?
The text was updated successfully, but these errors were encountered: