# LOCAL\_INFILE\_Packet

If the client sends a `LOAD DATA LOCAL INFILE` statement via [com\_query](https://mariadb.com/docs/server/reference/clientserver-protocol/2-text-protocol/com_query), the server responds with `LOCAL_INFILE_Packet` to tell the client to send a specified file to the server.

## Fields

* [int<1>](https://mariadb.com/docs/server/reference/protocol-data-types#fixed-length-integers) `0xFB` : `LOCAL_INFILE` header.
* [string\<EOF>](https://mariadb.com/docs/server/reference/protocol-data-types#end-of-file-length-strings) filename.

## Client Response

The client sends the file as the packet body. If the file is large, the contents are sent in multiple separate packets. After the file is sent, the client must send an empty packet to indicate that no more data will follow.

Once the client has finished sending the file, the server will respond with an [OK\_packet](https://mariadb.com/docs/server/reference/clientserver-protocol/4-server-response-packets/ok_packet) or an [ERR\_packet](https://mariadb.com/docs/server/reference/clientserver-protocol/4-server-response-packets/err_packet).

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
