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

Partial Content / CanSeek for Azure Blob Storage #78

Open
ChrisKretschmer opened this issue Sep 2, 2024 · 0 comments
Open

Partial Content / CanSeek for Azure Blob Storage #78

ChrisKretschmer opened this issue Sep 2, 2024 · 0 comments

Comments

@ChrisKretschmer
Copy link

Hi all,
I'm trying to serve videos retreived using FluentStorage using a HTTP controller and HTTP 206 Partial Content.

When using the disk storage provider, everything works fine - the clients are able to request parts of the videos.
When using the Azure Blob storage backend, this is not possible. "CanSeek" is false

var stream =  await _blobStorage.OpenReadAsync(file.ExternalStorageId);
 _logger.Log(LogLevel.Information, "File {0} opened for reading. CanSeek: {1}", file.Id, stream.CanSeek);     // <-- False

Is there a way to get a seekable Stream here? Or do I really need to use the native Azure SDK which seems to support this?

Thank you :)

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

1 participant