We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have image as byte array, how to save it to gallery iOS?? help please
The text was updated successfully, but these errors were encountered:
Hi @BoikoIlya!
By using the Save File Picker UI, you can do it like explain in the documentation:
val image: ByteArray // FileKit Core val file = FileKit.saveFile( baseName = "image", extension = "png", initialDirectory = "/custom/initial/path", bytes = image ) // FileKit Compose val launcher = rememberFileSaverLauncher() { file -> // Handle the saved file } launcher.launch( baseName = "image", extension = "png", initialDirectory = "/custom/initial/path", bytes = image )
And you need to find a way to get the url of the gallery in iOS that you can pass it to initialDirectory parameter.
initialDirectory
If you want to save direct bytes to a file without using picker UI, you'll need to code this yourself as it's not supported yet with FileKit.
Sorry, something went wrong.
this may help: https://github.com/fethij/Rijksmuseum/blob/main/feature/arts/src/iosMain/kotlin/Utils.ios.kt#L47
No branches or pull requests
I have image as byte array, how to save it to gallery iOS?? help please
The text was updated successfully, but these errors were encountered: