SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast mandi_nole's Avatar
    Join Date
    Jun 2001
    Location
    Orlando, FL
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    BLOB field inserts - please help

    I realize that MySQL has limitations, and that directly storing the file in the database has performance issues, but all that aside, I still need to know HOW to insert a file into a BLOB field once the file has been uploaded to the server. I can handle the upload fine, but I don't have any examples of code that insert an uploaded file into a BLOB field.

    I'm going to try searching Microsoft's website, since they have such detailed documentation, but since MySQL doesn't behave like SQL Server, I don't know whether anything I find there will be useful.

    Any help would be greatly, greatly appreciated.

    Mandi
    Love ya - mean it!

  2. #2
    SitePoint Addict kunal's Avatar
    Join Date
    Oct 2000
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    simple.. all you need to do.. is open the file... read the contents into a variable.. and then insert the variable into mysql
    i dunno...


Bookmarks

Posting Permissions

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