# itk.js readImageDICOMFileSeries

**URL:** <https://discourse.itk.org/t/itk-js-readimagedicomfileseries/2086>\
**Category:** Beginner Questions\
**Tags:** javascript\
**Created:** [July 24, 2019, 3:47pm UTC](https://discourse.itk.org/t/itk-js-readimagedicomfileseries/2086 "2019-07-24T15:47:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [July 31, 2019, 3:46pm UTC](https://discourse.itk.org/t/itk-js-readimagedicomfileseries/2086/2 "2019-07-31T15:46:25Z")

</div>

Hi Andrew,

As a first step, try to use [the itk.js UMD module](http://insightsoftwareconsortium.github.io/itk-js/examples/umd.html).

```auto
<script src="https://unpkg.com/itk@9.6.1/umd/itk.js"></script>

<script>
export default {
  name: "Test",
  methods: {
click() {
  var file = document.getElementById("fileItem").files[0];
   itk.readImageFile(null, file)
    .then(function({ image, webWorker }) {
      console.log(image);
    })
    .catch(error => {
      console.error(error);
    });
}
  }
};
</script>

```

For an interactive example, see

> **[itk-js-umd-example](https://glitch.com/~itk-js-umd-example)**
>
> Check out ~itk-js-umd-example on Glitch, the friendly community where everyone can discover & create the best apps on the web.

Note that for a single file, use the [`readImageFile`](http://insightsoftwareconsortium.github.io/itk-js/api/browser_io.html#readImageFile-webWorker-file-gt-webWorker-image) API.

To support both a single-file DICOM volume and a DICOM series, see this example:

> **[itk-read-dicom](https://glitch.com/~itk-read-dicom)**
>
> Read a DICOM image file series or a single DICOM image file.
> 🎏 Glitch is the friendly community where everyone can discover & create the best apps on the web.

Eventually, you may want to incorporate itk.js into your Webpack build. An overview and example of this is here:

> **[Using itk.js in a web browser application via Webpack](http://insightsoftwareconsortium.github.io/itk-js/examples/webpack.html)**
>
> This example demonstrates how to use itk.js in a web browser application built with Webpack. Find the full example in the itk-js/examples/Webpack directory of the GitHub repository. Since we as

You can also use the Unpkg.com-published web workers with Webpack:

> **[Using itk.js with modules stored on a CDN](http://insightsoftwareconsortium.github.io/itk-js/examples/unpkgio.html)**
>
> This example demonstrates how to use itk.js in a web browser application built with Webpack where the itk.js modules are stored on a Content Delivery Network (CDN). This is an alternative to bundling

---

_[View the full topic](https://discourse.itk.org/t/itk-js-readimagedicomfileseries/2086)._
