One Day Sec

What is the difference between downloading a file in text versus binary format using the `InitiateFileTransferFromGuest` method?

After `InitiateFileTransferFromGuest` returns a URI, you access it with a GET request. For text files, read the response content using `r.text`, which decodes the data as text. For binary files, use `r.content` and save it directly (e.g., as `temp.bin`) to preserve the byte stream. The choice depends on the file type being downloaded.
InitiateFileTransferFromGuestfile downloadtext formatbinary format

Browse all Q&A →