Transferring Files from Memory to the Server
- Updated2025-10-28
- 2 minute(s) read
Send files stored in memory from a client to the server to save, process, or enable access for others.
What to Use
You can find the SystemLink File Transfer and Configuration APIs on the Data Communication palette in LabVIEW 2016 or later.
What to Do
On the client, create the following diagram in a VI to send files from memory to the server.
Customize the gray sections for your unique programming goals.

| 1 |
Open Configuration initiates a connection
with the file service on the SystemLink server.
Note SystemLink Server
supports both HTTP and AMQP configurations.. |
| 2 | Create generates a writable file on the file service using the name and properties you specify. |
| 3 |
Within the For Loop, Send Packet transmits the file's data in packets to the file service. LabVIEW automatically numbers the packets zero-indexed sequential integers. The file service will use the packet numbering to sequentially write the packets to disk on the server after it receives the final packet. |
| 4 | Send Last Packet transmits the last packet of data to the file service. After receiving the final packet, the file service sequentially writes the packets to disk on the server. After Send Last Packet transmits the last packet of data, the file is no longer writable. Therefore, you cannot send additional packets of the file to the file service. |
| 5 | Close invalidates and closes all open references. |
Troubleshooting
- If your client disconnects during a file transfer, you need to abort the file transfer and wait for the server to automatically delete the partial file transfer. After the server deletes the partial file transfer, initiate a new file transfer.
Note If a partial file transfer does not progress within an hour, the server automatically treats it as an abandoned transfer and deletes it.
- If your system has unreliable network
connections or slow transfer rates, you may need to adjust the packet size for
the file transfer. Decrease the packet size input of
Send Packet to a smaller number to prevent timeouts.
Note A smaller packet size means more packets are sent, which increases the total time required to transfer the file because more roundtrips must occur between the server and client.
Examples
- Sync File IO
Related Information
- SystemLink API Reference
- Transferring Files from Disk to the Server
Send files stored on disk from a client to the server to save, process, or enable access for others.