Categories
Archives
100 Calorie Snack-Sized Bites Of Knowledge | Home | WizTools.org RESTClient 2.1 Released, Lauds Yours Truly
Filed under Quick Tips on March 11, 2008 by Ben SgroInserting a PDF Into MSSQL Via PHP
Ever try inserting a pdf in a MSSQL database?
Its not just a simple INSERT. In fact, you have to jump
through a number of hoops to get it to work. The included script is invoked
with a single argument, the name of the pdf. The script should be edited prior
to use so that your database credentials and field names can be set.
Once it is setup, its as easy as running the script:
chmod x+ insertPDF.php ./insertPDF.php -f fileToInsert.pdfThat's it!
Here's a link to the script:
http://www.arc90.com/_assets/insertPDF.txtTrackback Pings (TrackBack URL for this entry)
http://www.arc90.com/cgi-bin/mt4/mt-tb.cgi/109.
100 Calorie Snack-Sized Bites Of Knowledge | Main | WizTools.org RESTClient 2.1 Released, Lauds Yours Truly
