createFile
Creates a new file in given Store.
Return
Instance ready to write to the created Store file
Parameters
reference to Store API
ID of the Store
byte array of any arbitrary metadata that can be read by anyone
byte array of any arbitrary metadata that will be encrypted before sending
size of data to write
Throws
when storeApi is not initialized or there's no connection
if there is an error while creating Store file metadata
if there is an unknown error while creating store file metadata
Creates new file in given Store and writes data from given Source.
Return
ID of the created file
Parameters
reference to Store API
ID of the Store
byte array of any arbitrary metadata that can be read by anyone
byte array of any arbitrary metadata that will be encrypted before sending
size of data to write
stream with data to write to the file using optimal chunk size StoreFileStream.OPTIMAL_SEND_SIZE
controls the process of writing file
Throws
if there is an error while reading stream or this
is closed
when storeApi
is not initialized or there's no connection
if there is an error while creating Store file metadata
if there is an unknown error while creating Store file metadata