title: insert a file into postgres
body: <p>How do I insert a file that resides in windows in c:\temp\sample.txt</p>
  
  <p>I have tried</p>
  
  <pre><code>insert into lob_file VALUES (5, pg_read_file('c://temp//sample.txt')::BYTEA);
  </code></pre>
  
  <p>and got</p>
  
  <blockquote>
    <p>ERROR: could not start file c://temp//sample.txt. No such file or
    directory.</p>
  </blockquote>