Kory
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Kory
openai
/
io.kory.openai.client
/
OpenAIClient
/
getFileContent
get
File
Content
open
suspend override
fun
getFileContent
(
fileId
:
String
)
:
ByteArray
Retrieves the raw content of a file as a byte array.
Return
The file content.
Parameters
file
Id
The ID of the file.
Samples
io.kory.core.samples.files.gettingFileContentAsByteArray