You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[API Proposal]: Add FromFile method to BinaryData #106203
FromFile() should probably also have an overload for mediaType. and is there a need for FromFileAsJson<T>()? this would be very handy, I can also see a FromFileAsGzip() version.
Activity
dotnet-policy-service commentedon Aug 9, 2024
Tagging subscribers to this area: @dotnet/area-system-memory
See info in area-owners.md if you want to be subscribed.
terrajobst commentedon Aug 9, 2024
Makes sense.
Given that
FromStreamalso hasFromStreamAsyncit seems we'll want aFromFileAsyncversion as well:skyoxZ commentedon Aug 11, 2024
Also more overloads? For
mediaTypeandcancellationToken.terrajobst commentedon Aug 12, 2024
Good call. Fixed.
dersia commentedon Aug 13, 2024
FromFile()should probably also have an overload for mediaType. and is there a need forFromFileAsJson<T>()? this would be very handy, I can also see aFromFileAsGzip()version.terrajobst commentedon Aug 13, 2024
I fixed that, see original comment.
Maybe? I don't recall ever having that need but that might just be me. What's the scenario for that?
Today there is no compression handling at all in
BinaryData. I think this should be a separate feature request as it seems unrelated to support files.terrajobst commentedon Aug 13, 2024
Video
mediaTypeto the sync overload