# “exception occurred during imageIO”

**URL:** https://discourse.itk.org/t/exception-occurred-during-imageio/2016
**Category:** Beginner Questions
**Created:** [July 7, 2019, 3:46pm UTC](https://discourse.itk.org/t/exception-occurred-during-imageio/2016 "2019-07-07T15:46:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jeroch](https://discourse.itk.org/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@jeroch](https://discourse.itk.org/u/jeroch)
#### Post date: [July 7, 2019, 3:46pm UTC](https://discourse.itk.org/t/exception-occurred-during-imageio/2016/1 "2019-07-07T15:46:10Z")

</div>

hello sir ,when I save edited image used format .mha in macOS, one exception occurred like that. How to solve the question?

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [July 8, 2019, 3:37pm UTC](https://discourse.itk.org/t/exception-occurred-during-imageio/2016/2 "2019-07-08T15:37:13Z")

</div>

What source code did you use, and what was the exception message?

---

<div class="post-metadata">

### Author: ![jeroch](https://discourse.itk.org/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@jeroch](https://discourse.itk.org/u/jeroch)
#### Post date: [July 9, 2019, 12:05am UTC](https://discourse.itk.org/t/exception-occurred-during-imageio/2016/3 "2019-07-09T00:05:24Z")

</div>

thank you for replying ，sorry I did not used any code, just tried itksnap with 3.6 and 3.8 , the message is “exception occurred during image IO”.sorry for my poor english.

发自 Chyj

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [July 9, 2019, 2:23pm UTC](https://discourse.itk.org/t/exception-occurred-during-imageio/2016/4 "2019-07-09T14:23:39Z")

</div>

Basics: do you have enough free space on your hard drive? Do you have write access to the directory where you are trying to save the image?

Next: can you share the image in question?

---

<div class="post-metadata">

### Author: ![jeroch](https://discourse.itk.org/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@jeroch](https://discourse.itk.org/u/jeroch)
#### Post date: [July 10, 2019, 5:24am UTC](https://discourse.itk.org/t/exception-occurred-during-imageio/2016/5 "2019-07-10T05:24:03Z")

</div>

thank you for your patience, I can not upload the image without getting patient allowed ，however I run the itksnap in win 10 instead and it works well. anyway, thank you again, it is very kind of you.  
Best wishes 🙂

发自 Chyj
