skip to Main Content

Flutter – How to send file inside json object

Maybe anyone know how to send request like this ? { 'NewDocuments':[ { 'id':1, 'document': (my image) } ]} i need inside Json object send image (not in base64, but as file), data.files.add(MapEntry( 'document', MultipartFile.fromBytes( bytes, filename: fileName, contentType: mediaType,…

VIEW QUESTION
Back To Top
Search