Giter Club home page Giter Club logo

Comments (7)

LDEV4966 avatar LDEV4966 commented on May 29, 2024 2
  • issue 번호 :

    #54

  • 문제원인 파악 :

지금 현재 Dicom 서버에 업로드 파일은 문제 없이 올라갔지만 Response로 Body 를 포함하지 않고 있다.

업로드 방식으로는 DicomAPIController에서 호출 할 때, MultiPartForm에 Body값을 multipart file로 세팅해서 보내고 있음.

그런데 Dicom API 공식 Document에 기재된 바 Request로 Dicom File 이라고만 명시되어 있어 이에 의문을 가짐.

API Tester를 통해서 Request Form의 형식을 두가지로 구분해서 확인 해 보았음.

  1. Binary File Form

스크린샷 2022-01-02 오전 3 27 24

  1. Multipart Form / File

스크린샷 2022-01-02 오전 3 29 13

  • 결론 :

우리가 지금까지 Talend API TESTER에서 확인한 Form 파일의 형식은 BinaryFile Form 이고, Dicom Server에서 요구하는 형식도 BinaryFile Form 이라 정상적인 Response가 왔던 것임.
그런데 현재 코드 상 MultiPart Form 으로 Requset를 요청하고 있어 적절한 Response가 오지 않았던 것임.
그런데 이상하게 MultiPart Form 으로 Requset를 요청해도 upload는 잘됨 그런데 Response가 이상하게옴. 이게 의문점이기는 하다..

  • 해결 방안 :

현재 코드의 Request Form을 Multipart Form에서 BinaryFile Form으로 수정할 필요가 있다.

from web-dicom-management.

BEOKS avatar BEOKS commented on May 29, 2024

같은 동작을 했을때, Api 테스터로는 body에 정보가 포함되어 있지만 spring boot에서 정보가 담겨있지 않다는 말임?

from web-dicom-management.

Jungwon-Lee avatar Jungwon-Lee commented on May 29, 2024

ㅇㅇ body정보가 안받아진 채로 response가 옮.
정상적으로라면 response에서 body를 추출해서 return해주어야하는데 getBody시에 null값을 반환함

from web-dicom-management.

BEOKS avatar BEOKS commented on May 29, 2024

지금 저 코드 브랜치에 업데이트 되어 있음?

from web-dicom-management.

Jungwon-Lee avatar Jungwon-Lee commented on May 29, 2024

DSM-36에 올려놨음

from web-dicom-management.

Jungwon-Lee avatar Jungwon-Lee commented on May 29, 2024

업로드한 파일
스크린샷 2022-01-02 오전 2 32 39

업로드한 후 다운로드 받은 파일
스크린샷 2022-01-02 오전 2 32 51

업로드는 잘 된게 맞는데, response에 왜 body가 누락된지는 모르겠다.

GetMapping으로 호출했을 땐, response가 잘 오는건 확인했음
스크린샷 2022-01-02 오전 1 48 36

from web-dicom-management.

Jungwon-Lee avatar Jungwon-Lee commented on May 29, 2024

해결완료
스크린샷 2022-01-02 오전 11 10 39

from web-dicom-management.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.