Configure lossless compression settings within Orthanc

how to configure lossless compression settings within Orthanc.?

Set the following option in Orthanc config file:

“IngestTranscoding” : “1.2.840.10008.1.2.4.70”

More information can be found in the below link:
https://orthanc.uclouvain.be/book/faq/transcoding.html

Hey Alvin ,

Thank you for your reply,

          I tried the code and it is working.

But I need one specific task that ,the loseless compression is only need for orthanc peer,

ie, I have a local orthanc running in 8042 port and it is transferred to another peer (port 5432) by Lua script. I want the compression only in 5432 not in 8042,is there any specific method for that?

orthanc.json

“OrthancPeers” : {

"peer1" : {
  "Name" : "myorthanc",
  "Url" : "http://xxxx:5432/",
  "Username" : "xxx",
  "Password" : "xxxx",
  "HttpHeaders" : { "Token" : "Hello orthanc

" },
“Pkcs11” : false,
“Timeout” : 42

}

},

Hello,

Simply set “IngestTranscoding” : “1.2.840.10008.1.2.4.70” in the configuration configuration file of the Orthanc server that listens on 5432.

Regards,
Sébastien-