mangubatrj
10/18/2023, 3:19 AMNSData using moko-media? Or at least get the file path or name of the Bitmap? as I am currently trying to use the library to get image from gallery/camera and then upload it multipart via Ktor.alex009
10/18/2023, 3:25 AMByteArray.
also Bitmap for iOS contains UIImage - https://github.com/icerockdev/moko-media/blob/40c777bd3fccac60bfda5b1886514e6054e132a3/media/src/iosMain/kotlin/dev/icerock/moko/media/Bitmap.kt#L21
so you can do conversation same way as in iOS UIImage -> NSDatamangubatrj
10/18/2023, 6:44 AMmediaPickerController.pickMedia()
Because I needed the file `path`/`name` to be uploaded via multipart. It is kind of working for the Gallery. But may I ask how should I do this via Camera? as I really need the file `path`/`name` for the upload part.alex009
10/18/2023, 10:45 AMpickImage just save Bitmap to file with okio (read ByteArray and write with okio)mangubatrj
10/18/2023, 12:57 PM