upload / un-upload

Results 1 to 2 of 2

Thread: upload / un-upload

  1. #1
    Join Date
    Dec 1969

    Default upload / un-upload

    Greetings, <BR><BR>I have a couple question i guess... I hope someone can help me. <BR><BR>I have designed this script that allows you to upload files on my website either to disk or database. Everything works great... it uploads it to wherever i decide... BUT. I need a way to per say un-upload it from the database. How is this done. <BR><BR>I have included a link to some examples of the scripts i am using. <BR><BR>1) This one is the form: http://www.pcinvisions.com/uploadform.txt <BR><BR>2) This one is the info processing page: http://www.pcinvisions.com/upload.txt <BR><BR>3) This one displays the information and actually uploads it: http://www.pcinvisions.com/uploadexample.txt <BR><BR>Again, I need a way to pull the files uploaded into the database out of the database and then move them either to a specified directory or just delete them. <BR><BR>I can handle the deleting part but would appreciate help with the extracting and moving. <BR><BR>Thank In Advance, <BR><BR>David Hill

  2. #2
    Join Date
    Dec 1969

    Default extracting data from DB to files...

    Look into the ADODB.Stream object.<BR><BR>You can put all of the data from a field in the DB into a given Stream object and then write the Stream to a file. Presto.<BR><BR>You can treat the Stream as either binary data or text data, as appropriate.<BR><BR>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdmthopenstream.asp<BR><BR>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdmthsavetofile.asp<BR><BR>and all of the methods on Stream:<BR>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdobjstreampme.asp<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts