You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We may need to load some data in a specific compression format, so a new request header needs to be set up to specify the compression format, such as gzip.
put.setHeader("compression", "gzip");
If you are considering using your own generated data for validation, something like cn.hutool.core.util.ZipUtil can help you compress the generated data. In this example, you can replace this line of code to get a tsv compressed with gzip.
// old, without gzip// loader.sendData(client, loadUrl, loadData.getBytes());// new, with gziploader.sendData(client, loadUrl, ZipUtil.gzip(loadData.getBytes()));
To import cn.hutool, you need to edit pom.xml to add this dependency.
No description provided.
The text was updated successfully, but these errors were encountered: