PDF를 다운로드하고 저장하려고하지만 EOF 오류로 쓰는 동안 오류가 발생합니다. 이 작업을 수행하는 올바른 방법은 무엇입니까?drakma : http-request 및 flexistreams를 사용하여 파일을 다운로드하고 저장하는 방법
(with-open-file (file "/home/*/test.pdf"
:direction :io
:if-does-not-exist :create
:if-exists :supersede
:element-type '(unsigned-byte 8))
(let ((input (drakma:http-request "http://www.fractalconcept.com/ex.pdf"
:want-stream t)))
(awhile (read-byte input)
(write-byte it file))
(close input)))
출력하는 중이므로': direction : output'을 사용해야합니다. – Svante