CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2006
    Posts
    67

    How to save uploaded files in database

    Hi,i am able to upload the files from client side and storing at the server.But my problem is how to save those files in the database(Msacess)?Any links or advises or appreciated..

  2. #2
    Join Date
    May 2004
    Location
    Karjaa, Finland
    Posts
    23

    Re: How to save uploaded files in database

    I'm not sure if that is even possible but why don't you just store the link information to the file in the database.

  3. #3
    Join Date
    Jul 2006
    Posts
    19

    Re: How to save uploaded files in database

    Maybe this post won't help you much, but its "easily" possible
    with an oracle sql server.
    You can save files as binary large objects (blob) there.

    But I don't know if access got something comparable.

  4. #4
    Join Date
    Jun 2003
    Location
    Toronto
    Posts
    805

    Re: How to save uploaded files in database

    access does have a comparable data type for storing images. its called :
    OLE Object.

    just for interest sake why would you want the image in the db. Access db's are notorious for corruption and your playing with fire storing an image in a db. You should store the image on disk and point to the directory in the database.

    hth,
    mcm
    rate my posts!
    mcm

  5. #5
    Join Date
    Jun 2006
    Location
    Minnesota
    Posts
    257

    Re: How to save uploaded files in database

    Quote Originally Posted by mcmcom
    access does have a comparable data type for storing images. its called :
    OLE Object.

    just for interest sake why would you want the image in the db. Access db's are notorious for corruption and your playing with fire storing an image in a db. You should store the image on disk and point to the directory in the database.

    hth,
    mcm
    Doesn't it depend on what type of image you store in your database? I've heard of and seen bitmaps stored in databases without any problems.

    I agree with the assessment that access is no good though.

  6. #6
    Join Date
    Jun 2003
    Location
    Toronto
    Posts
    805

    Re: How to save uploaded files in database

    if you write binary it does not matter.
    rate my posts!
    mcm

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured