Mirana
Mirana

Reputation: 37

Transfer file from native and receive it in flutter

I have a kotlin app and I need to transfer an image file from native to flutter. I am new to the kotlin side but good with flutter. How should I approach this?

Upvotes: 0

Views: 222

Answers (1)

MurphLu
MurphLu

Reputation: 51

How about transfer image data in base64 string format,

In Kotlin side, encode the image file data into base64 format,

In Flutter side, decode the base64 string to image,

I think it is the normal way to transfer images or other files between different Languages

Upvotes: 2

Related Questions