Skip to content

Conversation

fenix-hub
Copy link
Collaborator

  • files from storage are now retrieved by default as a PoolByteArray
  • it is now possible to define wether a file is supposed to be saved locally or not:
    • bucket.download("images/image.png", "user://images/image.png") retrieve the file from storage as a PoolByteArray and save to the defined path
    • bucket.download("images/image.png") will just retrieve the file as Bytes. To get the bytes, the StorageTask.data property will hold the content as bytes.

@fenix-hub fenix-hub merged commit a3242a0 into main Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant