cyclosproject / ng-swagger-gen

A Swagger 2.0 codegen for Angular
MIT License
220 stars 100 forks source link

Unable to receive PNG as octet-streams #243

Closed eubrn closed 4 years ago

eubrn commented 4 years ago

Hi. I am running into issues when receiving a byte array response declared as "application/octet-stream" in the swagger json. This array contains PNG data which is corrupted when the HttpRequest has a responseType: text and a return type of string. Is there a way to influence how such methods are generated or a workaround for this?

Thanks!