You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 24, 2018. It is now read-only.
/** * Returns the Resource. it is keeped inside the html for just resource url. * Specially, this doesn't need Auth * * @author susu Date Nov 7, 2014 12:27:41 AM * @param userId * User HashId * @param docId * Id of the Documnet where Resource is stored * @param attachmentId * Resource's Id inside the document * @return Need to Decide how are we going to return image resources * @throws Exception */@RequestMapping(value = "user/file", method = RequestMethod.GET)
//@ApiOperation(httpMethod = "GET", value = "Gets User's Media resources")publicResponseEntity<byte[]> getResource(HttpServletResponsehttpResponse,
@RequestParam(required = true) StringuserId,
@RequestParam(required = true) StringdocId,
@RequestParam(required = true) StringattachmentId)
throwsException {
returnrestApiService.getAttachment(userId, docId, attachmentId);
}
파일데이터 조회할때 Attachment를 예를들면
도메인:5984/도큐먼트아이디/어테치먼트아이디
로 카우치 디비에 바로 요청을 날리면 파일데이터를 받을 수 있음.
서버에 파일조회를 요청할시 우리가 카우치디비에 요청을 날리고 파일데이터를 가져와서 파일데이터를 날릴지
아니면 파일데이터에 접근가능한 URL을 날릴지.
만약 URL을 날린다면 카우치디비 도메인과 도큐먼트아이디 어태치먼트아이디를 공개해도 되는지.
The text was updated successfully, but these errors were encountered: