[PHP] inserting a file into MSSQL

2002-01-08 Thread Peter Lavender
Hi everyone, Does anyone have a link to a good reference on how to insert a binary file (zip file) into MSSQL? I've got the upload and stuff working, just a bit unsure about how I'm now going to put the file(it's been moved) into the database itself. The datatype I have used is Image, but most

[PHP] inserting a file into MSSQL

2002-01-08 Thread Peter Lavender
Sorry to post twice, I should have said that I'm using php 4.1.11. A PEAR example would be even better :) > Hi everyone, > > Does anyone have a link to a good reference on how to insert a binary file > (zip file) into MSSQL? > > I've got the upload and stuff working, just a bit unsure about how

Re: [PHP] inserting a file into MSSQL

2002-01-09 Thread Jimmy
Hi Peter, > Does anyone have a link to a good reference on how to insert a binary file > (zip file) into MSSQL? why do you want to store binary file in DB? It's more efficient to store the file in filesystem, and in DB only store the path of the file. Unless you really have a good reason and lef