question

Upvotes
Accepted
7 3 3 5

TRTH VBD data question

One of my client use TRTH to subscribe VBD for their business.

However, they asked why TR provided VBD files with .gz file, but those .gz files are plain text data, instead of compressed data?

Is those data auto decompressed?

Is there any chance to shorten the transmission time, if TR provide .gz files with compressed format?

Thank you very much.

Chris Wang

tick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@Chris.Wang, can you provide an example of a file that has extension .gz but is in plain text instead of compressed ? I am guessing the issue is in the way the files were downloaded, and not the files themselves. Can you also tell us how the customer downloaded the files (ideally by posting the actual code they used) ?

Upvotes
Accepted
13.7k 26 8 12

@Chris.Wang, VBD data files are in compressed (gzipped) format.

The code that downloads the files must be written in a way to avoid it being automatically decompressed upon download. We have a sample in C#, described in .Net SDK Tutorial 2, which does this for VBD files.

If your customer is using a different programming language, please post the code they use (as a minimum, the section that downloads the data and the list of libraries), and we can have a look at it.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
32.2k 40 11 20

Hello @Chris.Wang,

Many http REST clients decompress by default. I.e. some java HttpClients from Apache, Postman tool.

In order to understand, if your client is experiencing one of these cases, it would be necessary to know which VBDs are downloaded and how are they downloaded, as suggested by @Christiaan Meihsl.

Thanks,

-AHS

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.