> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# downloadFiles

<div className="kinetica-doxygen">
  <div id="a35176ff175877c640a64d3a8ef173c8c" />

  <h2 className="memtitle"><span className="permalink"><a href="#a35176ff175877c640a64d3a8ef173c8c">◆ </a></span>downloadFiles() <span className="overload">\[1/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname"><a className="el" href="/content/api/cs/classkinetica_1_1DownloadFilesResponse">DownloadFilesResponse</a> kinetica.Kinetica.downloadFiles </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1DownloadFilesRequest">DownloadFilesRequest</a></td>
                <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
                <td>)</td>

                <td />
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Downloads one or more files from <a href="/content/tools/kifs/" target="_top">KiFS</a>. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">request\_</td>
              <td>Request object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L32489">32489</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="a799a3651ff5f2a62c616af72e945512a" />

  <h2 className="memtitle"><span className="permalink"><a href="#a799a3651ff5f2a62c616af72e945512a">◆ </a></span>downloadFiles() <span className="overload">\[2/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname"><a className="el" href="/content/api/cs/classkinetica_1_1DownloadFilesResponse">DownloadFilesResponse</a> kinetica.Kinetica.downloadFiles </td>
                <td>(</td>
                <td className="paramtype">IList\< string ></td>
                <td className="paramname"><span className="paramname"><span className="em">file\_names</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IList\< long ></td>
                <td className="paramname"><span className="paramname"><span className="em">read\_offsets</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IList\< long ></td>
                <td className="paramname"><span className="paramname"><span className="em">read\_lengths</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</span> )</td>
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Downloads one or more files from <a href="/content/tools/kifs/" target="_top">KiFS</a>. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">file\_names</td>
              <td>An array of the file names to download from KiFS. File paths may contain wildcard characters after the KiFS directory delimiter. Accepted wildcard characters are asterisk (\*) to represent any string of zero or more characters, and question mark (?) to indicate a single character.</td>
            </tr>

            <tr>
              <td className="paramname">read\_offsets</td>
              <td>An array of starting byte offsets from which to read each respective file in <span className="em">file\_names</span> . Must either be empty or the same length as <span className="em">file\_names</span> . If empty, files are downloaded in their entirety. If not empty, <span className="em">read\_lengths</span> must also not be empty.</td>
            </tr>

            <tr>
              <td className="paramname">read\_lengths</td>
              <td>Array of number of bytes to read from each respective file in <span className="em">file\_names</span> . Must either be empty or the same length as <span className="em">file\_names</span> . If empty, files are downloaded in their entirety. If not empty, <span className="em">read\_offsets</span> must also not be empty.</td>
            </tr>

            <tr>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1DownloadFilesRequest_1_1Options#a490b4c589a0ae3ec3b05486bc8126ae2">FILE\_ENCODING</a>: Encoding to be applied to the output file data. When using JSON serialization it is recommended to specify this as <a className="el" href="/content/api/cs/structkinetica_1_1DownloadFilesRequest_1_1Options#ada9422bad27fab0b4f14a5b365a403cd">BASE64</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1DownloadFilesRequest_1_1Options#ada9422bad27fab0b4f14a5b365a403cd">BASE64</a>: Apply base64 encoding to the output file data. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1DownloadFilesRequest_1_1Options#a92d3783d748d8fcd84856d1371aa4964">NONE</a>: Do not apply any encoding to the output file data. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1DownloadFilesRequest_1_1Options#a92d3783d748d8fcd84856d1371aa4964">NONE</a>.
                  </li>
                </ul>

                The default value is an empty Dictionary.
              </td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L32567">32567</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="a1dc0355aaac5d1b3ad5ff5d849ee4543" />

  <h2 className="memtitle"><span className="permalink"><a href="#a1dc0355aaac5d1b3ad5ff5d849ee4543">◆ </a></span>DownloadFilesAsync() <span className="overload">\[1/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1DownloadFilesResponse">DownloadFilesResponse</a> > kinetica.Kinetica.DownloadFilesAsync </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1DownloadFilesRequest">DownloadFilesRequest</a></td>
                <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</span> )</td>
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Downloads one or more files from <a href="/content/tools/kifs/" target="_top">KiFS</a>. </p>
      <p>(async)</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">request\_</td>
              <td>Request object containing the parameters for the operation.</td>
            </tr>

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L32505">32505</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="a7fca6924e7d742ce88963f7f8e5d2502" />

  <h2 className="memtitle"><span className="permalink"><a href="#a7fca6924e7d742ce88963f7f8e5d2502">◆ </a></span>DownloadFilesAsync() <span className="overload">\[2/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1DownloadFilesResponse">DownloadFilesResponse</a> > kinetica.Kinetica.DownloadFilesAsync </td>
                <td>(</td>
                <td className="paramtype">IList\< string ></td>
                <td className="paramname"><span className="paramname"><span className="em">file\_names</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IList\< long ></td>
                <td className="paramname"><span className="paramname"><span className="em">read\_offsets</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IList\< long ></td>
                <td className="paramname"><span className="paramname"><span className="em">read\_lengths</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</span> )</td>
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Downloads one or more files from <a href="/content/tools/kifs/" target="_top">KiFS</a>. </p>
      <p>(async)</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">file\_names</td>
              <td>An array of the file names to download from KiFS. File paths may contain wildcard characters after the KiFS directory delimiter. Accepted wildcard characters are asterisk (\*) to represent any string of zero or more characters, and question mark (?) to indicate a single character.</td>
            </tr>

            <tr>
              <td className="paramname">read\_offsets</td>
              <td>An array of starting byte offsets from which to read each respective file in <span className="em">file\_names</span> . Must either be empty or the same length as <span className="em">file\_names</span> . If empty, files are downloaded in their entirety. If not empty, <span className="em">read\_lengths</span> must also not be empty.</td>
            </tr>

            <tr>
              <td className="paramname">read\_lengths</td>
              <td>Array of number of bytes to read from each respective file in <span className="em">file\_names</span> . Must either be empty or the same length as <span className="em">file\_names</span> . If empty, files are downloaded in their entirety. If not empty, <span className="em">read\_offsets</span> must also not be empty.</td>
            </tr>

            <tr>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1DownloadFilesRequest_1_1Options#a490b4c589a0ae3ec3b05486bc8126ae2">FILE\_ENCODING</a>: Encoding to be applied to the output file data. When using JSON serialization it is recommended to specify this as <a className="el" href="/content/api/cs/structkinetica_1_1DownloadFilesRequest_1_1Options#ada9422bad27fab0b4f14a5b365a403cd">BASE64</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1DownloadFilesRequest_1_1Options#ada9422bad27fab0b4f14a5b365a403cd">BASE64</a>: Apply base64 encoding to the output file data. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1DownloadFilesRequest_1_1Options#a92d3783d748d8fcd84856d1371aa4964">NONE</a>: Do not apply any encoding to the output file data. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1DownloadFilesRequest_1_1Options#a92d3783d748d8fcd84856d1371aa4964">NONE</a>.
                  </li>
                </ul>

                The default value is an empty Dictionary.
              </td>
            </tr>

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L32632">32632</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>
</div>
