Results 1 to 8 of 8

Thread: Upload & Display an Image in Access database

  1. #1

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Upload & Display an Image in Access database

    HI, Experts!

    I would like to upload an image from the ASP webform into the database. I am
    using ADODB. I store the image' data into the database and then display this file on my web. But I dont know how. Can anyone give me an idea on how to upload & display the image using this method? (this object "file system object" is unavailable)
    !Have fun!

  2. #2
    Fanatic Member
    Join Date
    Aug 2005
    Location
    Up State NY
    Posts
    525

    Re: Upload & Display an Image in Access database

    I remember a thread a while back about a file uploader. Do a search with those key words and it will return a few.

  3. #3
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Upload & Display an Image in Access database

    You will need Read Write Permissions to do that, so you would be better off just creating an images folder and upload the images there. Otherwise that Database file is going to get huge. I have code for uploading to a folder if you are interested.

  4. #4

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Re: Upload & Display an Image in Access database

    thanks for your reply!

    But I dont care about the bigger of database file (no problem). I want to know how to upload an image file into my Database without using "FileSystemObject" or Read Write Permissions of Server.

    to juliemac : Can you show me the keyword or Link??
    !Have fun!

  5. #5
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Upload & Display an Image in Access database

    Ok, but the folder where the Database is located, WILL require Read write Permissions as you will be updating it.. Honestly ive never imagined putting images into a database on a web site, and have never seen anyone else do it .. Its just not something we typically do in ASP.

    BAsically though if you were to do it, you would upload the image to a folder first (requiring Read Write Once again), then somehow insert it into the database (read write again) ..

    I use Persists Upload to upload files to my server through ASP.
    http://www.persits.com

    or ..
    http://www.freeaspupload.net/
    Last edited by rory; Jun 22nd, 2006 at 04:22 AM.

  6. #6

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Re: Upload & Display an Image in Access database

    Ohh!

    'Cause My Hosting does not support FileSystemObject or Read/Write file in Server So I must do it into my database. ( I know this is not typically but I dont have any another way to Upload image file. (

    I know your way but I can not do it follow you.

    I know another way to upload directly file into Database with Form.Binary (MultilData or something else,.. I dont know exactly). Do you know about this way??
    !Have fun!

  7. #7
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Upload & Display an Image in Access database

    FreeASpUpload is the only other way I know of other than using a Component like Persists .. FreeASPUpload uses a Form to upload binary data .. check them out .. its basically the type you are thinking of, but it is simply in a class file to make it easier to use.

    Still though .. where is the Database located? As it will require read write .. or is it on an FTP folder ..?

    Rory

  8. #8

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Re: Upload & Display an Image in Access database

    So I alway use Pure ASP for all my ASP page. I dont want to use any Component in my ASP page.
    I alway use Free Hosting to test my ASP page so some objects and some functions are not available.
    for Uploading you can see : pASPUpl2.zip (from motobit.com) , aspSmartUpload.zip , and freeaspupload.zip
    You can easy to find this code on Net.

    You can see my site at : http://fifo.vimaru.org
    My hosting : domaindlx.com (so cool but not many supported functions)
    !Have fun!

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