dotnet-sdk icon indicating copy to clipboard operation
dotnet-sdk copied to clipboard

Issue with Deserialization in GetStateAsync Method of DaprClient Library when Fetching XML Data from Blob Storage

Open KrzysztofPajak opened this issue 2 years ago • 2 comments

I am currently experiencing an issue with the GetStateAsync method from the DaprClient library (C#). When I fetch data from blob storage, which returns XML data, the JsonSerializer does not support XML deserialization, thus causing a problem. Is there a workaround or solution to retrieve these data? I would appreciate any help or guidance you could provide to resolve this issue. Thank you.

KrzysztofPajak avatar Sep 04 '23 07:09 KrzysztofPajak

Once this PR is merged, I think it should unblock you as you can deserialize the data yourself: https://github.com/dapr/dotnet-sdk/pull/1116

Did you put the data in via the DaprClient as well? Or does this data exist in the statestore already?

halspang avatar Sep 07 '23 21:09 halspang

@halspang The data exists in the store, but it would be great if we could put the binary data. Thanks for the great work!

KrzysztofPajak avatar Sep 11 '23 16:09 KrzysztofPajak