Problem
I’m using autorest to refresh the models and API from vc platform in the storefront. After the generation process finished, there are several APIs that return file response in platform modules that got generated to String instead of Stream, which caused internal exceptions after API calls.
Reason
The main reason of the problem is Issue in Autorest client.
Workaround
To fix this problem in the Storefront after generation new AutoRest client with Stream content endpoint we should update some code.
More details here: AutoRest client generation workaround · VirtoCommerce/vc-storefront Wiki (github.com)