We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
readImageDicomFileSeries.then() 、catch or finally not inter
code: `import { imageNames } from "@/constant/testFileList" import { readImageDicomFileSeries } from "@itk-wasm/dicom"; import axios from 'axios'
const BASE_URL = 'http://192.168.1.112:8086'
const assembleDcmUrl = (dcmUrl: string) => { return ${BASE_URL}/${dcmUrl} }
${BASE_URL}/${dcmUrl}
const getImageIds = (dcmUrlList: Array) => { return dcmUrlList.map((item) => { return assembleDcmUrl(item) }) }
Promise.all(getImageIds(imageNames).map((imageUrl: string) => { return axios.get(imageUrl, { responseType: 'arraybuffer' }) })).then(result => { const fileList = result.map((resultItem, index) => { return new File([resultItem.data], ${index}.dcm) }) readImageDicomFileSeries({ inputImages: fileList }).then(result => { console.log(result) }).catch(error => { console.log(error) }).finally(() => { console.log('finally') }) })`
${index}.dcm
The text was updated successfully, but these errors were encountered:
I am not sure what the error being received is here.
Sorry, something went wrong.
No branches or pull requests
readImageDicomFileSeries.then() 、catch or finally not inter
code:
`import { imageNames } from "@/constant/testFileList"
import { readImageDicomFileSeries } from "@itk-wasm/dicom";
import axios from 'axios'
const BASE_URL = 'http://192.168.1.112:8086'
const assembleDcmUrl = (dcmUrl: string) => {
return
${BASE_URL}/${dcmUrl}
}
const getImageIds = (dcmUrlList: Array) => {
return dcmUrlList.map((item) => {
return assembleDcmUrl(item)
})
}
Promise.all(getImageIds(imageNames).map((imageUrl: string) => {
return axios.get(imageUrl, { responseType: 'arraybuffer' })
})).then(result => {
const fileList = result.map((resultItem, index) => {
return new File([resultItem.data],
${index}.dcm
)})
readImageDicomFileSeries({
inputImages: fileList
}).then(result => {
console.log(result)
}).catch(error => {
console.log(error)
}).finally(() => {
console.log('finally')
})
})`
The text was updated successfully, but these errors were encountered: