Select to view content in your preferred language

Partial Content Download of VTPK File

66
0
Friday
mmoosbac94
Emerging Contributor

Hello everyone,

We have a question regarding the partial content download of a VTPK file. The file is stored in our ArcGIS Enterprise environment — it’s not a hosted tile layer (vector tile service), but a regular VTPK file that can be downloaded directly.

We are using a URLSessionDownloadTask to handle the download. However, when we start and then pause the download, resuming it later causes the download to start from the beginning instead of continuing from where it left off.

To verify our implementation, we tested another example file — https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4 — and partial downloads work correctly there, so the issue doesn’t appear to be related to our code.

The URL we use to access the VTPK file is:
https://<portalURL>/portal/sharing/rest/content/items/<id>/data?token=<token>

We also tested with curl to check if the portal supports partial content requests, and we received an HTTP/2 206 response. So partial content loading is supported, but it doesn’t seem to work as expected in our case.

Are we missing something, or can you tell us if this functionality is generally expected to work?

Thanks!
Marvin

 

0 Kudos
0 Replies