FluentStorage icon indicating copy to clipboard operation
FluentStorage copied to clipboard

Partial Content / CanSeek for Azure Blob Storage

Open ChrisKretschmer opened this issue 1 year ago • 1 comments

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 :)

ChrisKretschmer avatar Sep 02 '24 11:09 ChrisKretschmer

Is there anything planned to implement this?

ChrisKretschmer avatar Mar 27 '25 09:03 ChrisKretschmer