# STORE-SCU / MOVE-SCU: Unable to convert dataset

**URL:** https://discourse.orthanc-server.org/t/store-scu-move-scu-unable-to-convert-dataset/1626
**Category:** Google Groups archive
**Created:** [August 28, 2019, 2:16pm UTC](https://discourse.orthanc-server.org/t/store-scu-move-scu-unable-to-convert-dataset/1626 "2019-08-28T14:16:16Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Luiz\_Eduardo\_Guida\_V](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/l/dc4da7/32.png) [@Luiz\_Eduardo\_Guida\_V](https://discourse.orthanc-server.org/u/Luiz_Eduardo_Guida_V)
#### Post date: [August 28, 2019, 2:16pm UTC](https://discourse.orthanc-server.org/t/store-scu-move-scu-unable-to-convert-dataset/1626/1 "2019-08-28T14:16:16Z")

</div>

Hi, friends!

Is there a way to decompress images before sending them over to a remote modality when answering a MOVE/STORE SCU command?

We have a modality to which we connect Orthanc. But we cannot send certain studies over to said modality. Important information: our Orthanc converts images it receives to JPEG2000 Lossless.

As it turns out, we get this log:

---

<div class="post-metadata">

### Author: ![Luiz\_Eduardo\_Guida\_V](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/l/dc4da7/32.png) [@Luiz\_Eduardo\_Guida\_V](https://discourse.orthanc-server.org/u/Luiz_Eduardo_Guida_V)
#### Post date: [August 28, 2019, 2:40pm UTC](https://discourse.orthanc-server.org/t/store-scu-move-scu-unable-to-convert-dataset/1626/2 "2019-08-28T14:40:22Z")

</div>

By the way, I just learned of the ModifyInstance lua function. I can get away with it (deleting the modified image afterwards) but the real case is I need an entry-point, a callback.

Or a way to configure Orthanc so it decompresses the image prior to sending.

Also, this has been confirmed on osimis/orthanc-pro:latest image and a storescp can be setup with this line:

> $ storescp -od storescp-data-dir +xe --fork -aet LUIZ -sp -su -xs 2000

Changing the +xe for +xa makes it accept any transfer syntax. Alas that can’t be achieved in our production environment.

Thanks again!

---

<div class="post-metadata">

### Author: ![arhenrique](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@arhenrique](https://discourse.orthanc-server.org/u/arhenrique)
#### Post date: [August 29, 2019, 10:34pm UTC](https://discourse.orthanc-server.org/t/store-scu-move-scu-unable-to-convert-dataset/1626/3 "2019-08-29T22:34:51Z")

</div>

Hi,

&nbsp;&nbsp;Did you try open a new Orthanc with Jpeg2000 translate and forward to the client?  
&nbsp;&nbsp;When client do C-MOVE, you send to this new Orthanc translate and SEND for real client.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Roque

---

<div class="post-metadata">

### Author: ![Luiz\_Eduardo\_Guida\_V](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/l/dc4da7/32.png) [@Luiz\_Eduardo\_Guida\_V](https://discourse.orthanc-server.org/u/Luiz_Eduardo_Guida_V)
#### Post date: [August 30, 2019, 1:57am UTC](https://discourse.orthanc-server.org/t/store-scu-move-scu-unable-to-convert-dataset/1626/4 "2019-08-30T01:57:10Z")

</div>

Hi, Roque!

Do you mean setting up an extra Orthanc that decompresses the image (from Jpeg2000) and then automatically performs a C-MOVE to the actual destination? This sounds very interesting. I’ll talk to the project lead tomorrow morning! 😉

Thank you so much =)

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [September 3, 2019, 11:20am UTC](https://discourse.orthanc-server.org/t/store-scu-move-scu-unable-to-convert-dataset/1626/5 "2019-09-03T11:20:30Z")

</div>

Hello,

FYI, I’ve just added a FAQ about transcoding in the Orthanc Book:  
[https://book.orthanc-server.com/faq/transcoding.html](https://book.orthanc-server.com/faq/transcoding.html)

HTH,  
Sébastien-

---

<div class="post-metadata">

### Author: ![user5](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/u/cab0a1/32.png) [@user5](https://discourse.orthanc-server.org/u/user5)
#### Post date: [September 3, 2019, 12:41pm UTC](https://discourse.orthanc-server.org/t/store-scu-move-scu-unable-to-convert-dataset/1626/6 "2019-09-03T12:41:22Z")

</div>

Hello

Dear All

Dear Sébastien Jodogne

Two ORTHANC Server

Good idea

First ORTHANC

I think it would be very useful to have an automatic deletion function.

[https://book.orthanc-server.com/\_images/Transcoding4.svg](https://book.orthanc-server.com/_images/Transcoding4.svg)

2019年9月3日火曜日 20時20分30秒 UTC+9 Sébastien Jodogne:

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [September 3, 2019, 12:50pm UTC](https://discourse.orthanc-server.org/t/store-scu-move-scu-unable-to-convert-dataset/1626/7 "2019-09-03T12:50:31Z")

</div>

> First ORTHANC
> 
> I think it would be very useful to have an automatic deletion function.
> 
> [https://book.orthanc-server.com/\_images/Transcoding4.svg](https://book.orthanc-server.com/_images/Transcoding4.svg)

The automated deletion through the REST API is illustrated in the following sample (this sample is part of the transcoding FAQ):  
[https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Lua/AutomatedJpeg2kCompression.lua](https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Lua/AutomatedJpeg2kCompression.lua)

---

<div class="post-metadata">

### Author: ![user5](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/u/cab0a1/32.png) [@user5](https://discourse.orthanc-server.org/u/user5)
#### Post date: [September 3, 2019, 3:47pm UTC](https://discourse.orthanc-server.org/t/store-scu-move-scu-unable-to-convert-dataset/1626/8 "2019-09-03T15:47:57Z")

</div>

Dear Sébastien Jodogne

The automated deletion through the REST API is illustrated in the following sample (this sample is part of the transcoding FAQ):  
[https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Lua/AutomatedJpeg2kCompression.lua](https://www.google.com/url?q=https%3A%2F%2Fbitbucket.org%2Fsjodogne%2Forthanc%2Fsrc%2Fdefault%2FResources%2FSamples%2FLua%2FAutomatedJpeg2kCompression.lua&sa=D&sntz=1&usg=AFQjCNEuOJG6UGLYabNvipUGZliWXuJM_Q)

```auto
Another question
Is there any other modality (CR, CT, MR) automatic deletion function with default settings?
For example, delete it after 5 years.

```

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [September 3, 2019, 4:07pm UTC](https://discourse.orthanc-server.org/t/store-scu-move-scu-unable-to-convert-dataset/1626/9 "2019-09-03T16:07:43Z")

</div>

> Is there any other modality (CR, CT, MR) automatic deletion function with default settings? For example, delete it after 5 years.

No, use the REST API to script such a custom behavior:  
[https://book.orthanc-server.com/users/rest.html](https://book.orthanc-server.com/users/rest.html)

You could however interest in “MaximumStorageSize” and “MaximumPatientCount” configuration options:  
[https://book.orthanc-server.com/users/configuration.html](https://book.orthanc-server.com/users/configuration.html)
