Function: gptel--base64-encode
gptel--base64-encode is a natively compiled function defined in
gptel-request.el.
Signature
(gptel--base64-encode FILE)
Documentation
Encode FILE as a base64 string.
FILE is assumed to exist and be a regular file.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
;;;; File handling
(defun gptel--base64-encode (file)
"Encode FILE as a base64 string.
FILE is assumed to exist and be a regular file."
(with-temp-buffer
(insert-file-contents-literally file)
(base64-encode-region (point-min) (point-max)
:no-line-break)
(buffer-string)))