반응형 목록56 Writing exception to parcel java.lang.SecurityException: Permission Denial: .... requires that you obtain access using action_open_document or related apis 오류 삼성 갤럭시 S20, S21 에서 웹뷰 에서 사진을 앨범에서 선택을 할시 Writing exception to parcel java.lang.SecurityException: Permission Denial: .... requires that you obtain access using ACTION_OPEN_DOCUMENT or related apis 해당과 같은 오류가 발생 하였다. 원인은 Intent Uri 퍼미션 문제인 것으로 보이고 getContentResolver().takePersistableUriPermission(uri, Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); 해당코드를 추가후 해결되었다. 2021. 6. 16. Java Blob byte[] get File mime type Chrome 이나 Firefox 같은 브라우저에서는 상관이 없지만 IE 에서 outputStream 으로 이미지를 표시해줄때 ContextType 으로 이미지의 mime type 을 정확하게 담아주지 않으면 엑스박스 처리되는 문제가 있다. DB 에 이미지 의 mime 를 저장해놓으면 상관이 없으나 외부 DB 를 연동할 경우 저장하지 않고 파일만 담아놓는 경우가 있어 byte[] 에서 mime Type 을 가져올수 있는 라이브러리를 찾아 Java Mime Magic Library 0.1.2 를 적용하였다 response.setContentType(Magic.getMagicMatch(byte[]).getMimeType()); 기능은 문제없이 작동 하였으나 IE도 좀더 여유롭게 타입체크를 하였으면... 이라고.. 2019. 3. 25. OS X tunnelblick OPEN VPN Can't assign requested address (code=49) 오류 OS X OPEN VPN 접속시 Can't assign requested address (code=49) 오류가 날경우 연결되어있는 이더넷을 클리어 하거나 재부팅 해야된다 #en0 부분은 사용하고 있는 이더넷의 번호를 입력 하면된다 sudo ifconfig en0 down sudo route flush sudo ifconfig en0 up 참조 : https://www.ovpn.com/en/faq/troubleshooting/mac-cant-assign-requested-address-code49 2019. 3. 19. docker & nginx & nexus oss 3.x install & certbot ssl docker run -d -p 8081:8081 --name nexus sonatype/nexus3 server { listen *:80; server_name your.domain.com; # allow large uploads of files - refer to nginx documentation client_max_body_size 1G; # optimize downloading files larger than 1G - refer to nginx doc before adjusting #proxy_max_temp_file_size 2G; location / { proxy_pass http://localhost:8081; proxy_set_header Host $host; proxy_set_header.. 2018. 3. 5. 이전 1 2 3 4 ··· 14 다음 반응형