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) ?

@Chris.Wang, this is a good opportunity to suggest to your customer to use the TRDC portal and forum. It is free, he can use a pseudo to avoid sharing his identity, he can find documentation, downloads, tutorials, and post queries on the forum directly. The contents of the forum are kept up to date, and the forum is quite active, so he will usually get quick responses.

@Chris.Wang
Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply that best answers your question. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,
-AHS

Hello @Chris.Wang

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

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.