trevorwang / retrofit.dart

retrofit.dart is an dio client generator using source_gen and inspired by Chopper and Retrofit.
https://mings.in/retrofit.dart/
MIT License
1.08k stars 248 forks source link

add support for retrofit generator to generate RequestBody Stream<List<int>> from application/octet-stream with binary format declaration #470

Open arlakay opened 2 years ago

arlakay commented 2 years ago

Hi i'm using retrofit generator to generate API in flutter, but now it's not supporting for request type application/octet-stream with binary format. here my declaration: image but generator generate @Body() MultipartFile type instead of @Body() Stream<List<int** image

trevorwang commented 2 years ago

Did you try @Body() List?