I have a binary file I need to read its contents using retrofit for my flutter application.
I want to know if this could be possible or not. if yes, any links, please?
Otherwise, I need some recommendations.
Thanks in advance for your help
CodePudding user response:
First of all, you have to specify your retrofit
client and specify your API inside and specify ReturnType.bytes
by DioResponseType
annotation
I'll make a simple example for downloading the image from the