Bam
07/24/2024, 9:57 AMval bucket = supabase.storage.from("avatars")
bucket.upload("myIcon.png", byteArray, upsert = false)
//on JVM you can use java.io.File
bucket.upload("myIcon.png", file, upsert = false)
Or under "Create resumable upload":
...
//JVM/Android:
val upload = bucket.resumable.createOrContinueUpload("icon.png", File("icon.png"))
//Other platforms:
val upload = bucket.resumable.createOrContinueUpload(data = byteArray, source = "this is for continuing previous uploads later", path = "icon.png")
...
Seems that the JVM/Android approach can use Files, while other platforms can only use ByteArrays.
My question is whether the "Other platforms" ByteArray approach can also be used for on JVM/Android?Jan
07/24/2024, 10:02 AMBam
07/24/2024, 12:38 PMJan
07/24/2024, 5:14 PMI hope it's not an issue for me to ask question here that I might be able to find out myself. It might be useful for others looking for answers in the futureThats exactly why this channel exists 🙂