Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAD8e-000469-69 for pgsql-sql@arkaria.postgresql.org; Wed, 01 Jul 2015 08:13:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZAD8c-0003ZX-PM for pgsql-sql@arkaria.postgresql.org; Wed, 01 Jul 2015 08:12:58 +0000 Received: from makus.postgresql.org ([174.143.35.229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZAD6b-0001Gj-Ib for pgsql-sql@postgresql.org; Wed, 01 Jul 2015 08:10:53 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZAD6Y-0005cZ-LE for pgsql-sql@postgresql.org; Wed, 01 Jul 2015 08:10:52 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 0ADA6102B6E5 for ; Wed, 1 Jul 2015 01:11:43 -0700 (PDT) Date: Wed, 1 Jul 2015 01:10:50 -0700 (MST) From: drunken To: pgsql-sql@postgresql.org Message-ID: <1435738250344-5856051.post@n5.nabble.com> Subject: [C#] File Upload to PostgreSQL MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Hello, I am Marc from GB. I have a problem, i cannot upload a file to my PostgreSQL Database. I don't find the command what I have to use. I have tried: fileUpload.PostedFile.SaveAs(....) Lets say I have the DB on the Server on 8.8.8.8 the DB is called "test" and the table "upload" has an ID, name, timeupload and file. The file is a bytea type. Is this correct? How is the path called? Best Regards -- View this message in context: http://postgresql.nabble.com/C-File-Upload-to-PostgreSQL-tp5856051.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql