OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.94k stars 6.59k forks source link

Need a way to upload binary data #19201

Open Aruljebaraj opened 4 months ago

Aruljebaraj commented 4 months ago

I was trying to send binary form of data though I was getting 400 need a way to upload binary data I didn't find any solution so for particular thing I had to use http library like eg : response = await client.put( Uri.parse(Url), body: File(imageBaseCode.path).readAsBytesSync(), ); let me know even if we have any solution to this......

devhl-labs commented 4 months ago

@Aruljebaraj Please state the generator you are using and provide a simple spec that highlights the missing feature.

Aruljebaraj commented 3 months ago

@Aruljebaraj Please state the generator you are using and provide a simple spec that highlights the missing feature.

here is the piece of code using http library :

await client.put( Uri.parse(Url), body: File(imageBaseCode.path).readAsBytesSync(), );

need to upload file as File(imageBaseCode.path).readAsBytesSync() using dio

devhl-labs commented 3 months ago

And the spec?