writeToFile

expect fun writeToFile(inboxHandle: Long, inboxFileHandle: Long, dataChunk: ByteArray)

Sends a file's data chunk to an Inbox. To send the entire file - divide it into pieces of the desired size and call the function for each fragment. You do not have to be logged in to call this function.

Parameters

inboxHandle

handle to the prepared Inbox entry

inboxFileHandle

handle to the file where the uploaded chunk belongs

dataChunk

file chunk to send

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception

thrown when instance is closed

actual fun writeToFile(inboxHandle: Long, inboxFileHandle: Long, dataChunk: ByteArray)

Sends a file's data chunk to an Inbox. To send the entire file - divide it into pieces of the desired size and call the function for each fragment. You do not have to be logged in to call this function.

Parameters

inboxHandle

handle to the prepared Inbox entry

inboxFileHandle

handle to the file where the uploaded chunk belongs

dataChunk

file chunk to send

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception

thrown when instance is closed

actual external fun writeToFile(inboxHandle: Long, inboxFileHandle: Long, dataChunk: ByteArray)

Sends a file's data chunk to an Inbox. To send the entire file - divide it into pieces of the desired size and call the function for each fragment. You do not have to be logged in to call this function.

Parameters

inboxHandle

handle to the prepared Inbox entry

inboxFileHandle

handle to the file where the uploaded chunk belongs

dataChunk

file chunk to send

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception

thrown when instance is closed