How do I use the `COPY` command with JDBC
It works perfectly when I use a buffered reader but i'm trying to see if there's a way i can get i to work using the databases COPY FROM method. It works perfectly on the computer where the database is located but my other computer gets an error.


No you have to use a BufferedReader, or InputStream


COPY opens a file handle on the server. It just needs a path, because it can open and manage its own file handle, and that's more efficient.
For client-side COPY, you have to use libpq PQputCopyData. Internally, client-side COPY is COPY FROM STDIN. The client has to send the data. This is what psql's \COPY does internally. In Java, the function that calls PQputCopyData is copyIn which requires a BufferedReader, or InputStream.