Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to load headsq.vti and its .gz data file into browser #134

Open
gzt036 opened this issue Mar 3, 2021 · 1 comment
Open

failed to load headsq.vti and its .gz data file into browser #134

gzt036 opened this issue Mar 3, 2021 · 1 comment

Comments

@gzt036
Copy link

gzt036 commented Mar 3, 2021

the http request to load headsq.vti always results in a 'download completed' dialog box, i tried with IE, chrome and firefox and the behaviour is the same. does this happen to you as well? just run the example in the development mode.

@gzt036
Copy link
Author

gzt036 commented Mar 3, 2021

the problem is with vtk.js\Sources\IO\Core\DataAccessHelper\HttpDataAccessHelper.js
Line 122

  // Make request
  xhr.open('GET', url, true);
  xhr.responseType =
    options.compression || array.dataType !== 'string'
      ? 'arraybuffer'
      : 'text';
  xhr.send();

xhr.responseType is set to 'arraybuffer', which is correct, the url to load is
1839938295fe4f0839c9df8d9fa67137.gz
in
public/headsq/data directory
, after xhr.send(), instead of returning a 200 response, it opens a diaglog and returns a 204 response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant