xianyvbang

Results 2 comments of xianyvbang

> Correct, most of the image upload APIs require the body to be base64 encoded. That is up to the user of the SDK to do. But the FileInfo object...

> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io.encoding/-base64/ > > 因此你可以这样做: > > ```kotlin > apiClient.imageApi.postUserImage( > data = FileInfo( > mediaType = "image/png", > content = Base64.Default.encodeToByteArray(profile.readBytes()) > ) > ``` > > 或者 >...