> ## 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="a862c8a95bf7cf33f3b26e9237a57e139" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">DownloadFilesResponse</a> gpudb::GPUdb::downloadFiles </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesRequest">DownloadFilesRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</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="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesRequest">Request</a> 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"><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a050ab03f2c3744e30373d501b6be605a" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">DownloadFilesResponse</a> & gpudb::GPUdb::downloadFiles </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_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"><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">DownloadFilesResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</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="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a9ca866bcfa55789da0ae6cacd9c38fa9" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">DownloadFilesResponse</a> gpudb::GPUdb::downloadFiles </td>
          <td>(</td>
          <td className="paramtype">const std::vector\< std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">fileNames</span></span>, </td>
        </tr>

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

          <td />

          <td className="paramtype">const std::vector\< int64\_t > &</td>
          <td className="paramname"><span className="paramname"><span className="em">readOffsets</span></span>, </td>
        </tr>

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

          <td />

          <td className="paramtype">const std::vector\< int64\_t > &</td>
          <td className="paramname"><span className="paramname"><span className="em">readLengths</span></span>, </td>
        </tr>

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

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span> ) const</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="paramdir">\[in]</td>
              <td className="paramname">fileNames</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="paramdir">\[in]</td>
              <td className="paramname">readOffsets</td>
              <td>An array of starting byte offsets from which to read each respective file in <span className="em arg">fileNames</span>. Must either be empty or the same length as <span className="em arg">fileNames</span>. If empty, files are downloaded in their entirety. If not empty, <span className="em arg">readLengths</span> must also not be empty. </td>
            </tr>

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

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#ae926208617f119486e700f567d3fb92e">download\_files\_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/cpp/namespacegpudb#a088ee2c65e387365185601d1d760c80d">base64</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a088ee2c65e387365185601d1d760c80d">download\_files\_base64</a>: Apply base64 encoding to the output file data. </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aab04be20c44c701deb41c5c7829c6611">download\_files\_none</a>: Do not apply any encoding to the output file data. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#aab04be20c44c701deb41c5c7829c6611">download\_files\_none</a>.
                  </li>
                </ul>

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

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a12761bd43c23e964d5e5b1b2b2b4c529" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">DownloadFilesResponse</a> & gpudb::GPUdb::downloadFiles </td>
          <td>(</td>
          <td className="paramtype">const std::vector\< std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">fileNames</span></span>, </td>
        </tr>

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

          <td />

          <td className="paramtype">const std::vector\< int64\_t > &</td>
          <td className="paramname"><span className="paramname"><span className="em">readOffsets</span></span>, </td>
        </tr>

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

          <td />

          <td className="paramtype">const std::vector\< int64\_t > &</td>
          <td className="paramname"><span className="paramname"><span className="em">readLengths</span></span>, </td>
        </tr>

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

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span>, </td>
        </tr>

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

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">DownloadFilesResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</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="paramdir">\[in]</td>
              <td className="paramname">fileNames</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="paramdir">\[in]</td>
              <td className="paramname">readOffsets</td>
              <td>An array of starting byte offsets from which to read each respective file in <span className="em arg">fileNames</span>. Must either be empty or the same length as <span className="em arg">fileNames</span>. If empty, files are downloaded in their entirety. If not empty, <span className="em arg">readLengths</span> must also not be empty. </td>
            </tr>

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

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#ae926208617f119486e700f567d3fb92e">download\_files\_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/cpp/namespacegpudb#a088ee2c65e387365185601d1d760c80d">base64</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a088ee2c65e387365185601d1d760c80d">download\_files\_base64</a>: Apply base64 encoding to the output file data. </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aab04be20c44c701deb41c5c7829c6611">download\_files\_none</a>: Do not apply any encoding to the output file data. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#aab04be20c44c701deb41c5c7829c6611">download\_files\_none</a>.
                  </li>
                </ul>

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

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1DownloadFilesResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
