Close

Results 1 to 5 of 5
  1. #1
    DF Member explorer's Avatar
    Join Date
    Jan 2004
    Location
    rotherham
    Posts
    26
    Thanks
    0
    Thanked:        0
    Karma Level
    249

    Default where to put images

    I am just starting to lurn using access and asp 3.0
    and made a connection to the database and can get text
    from the database.Now I would like to get pictures in
    to my pages but dont where to start.do I upload pictures
    to my server using ftp then use a reference to the image's path
    in the database rather than using the actual image in the database.
    I read that some hosts prohibit the storing of images or blobs within databases,
    also I would like to know what blobs means and which option would be best
    for me as users to my site could pic an option and the page with say a recordset
    of 10 photos would be displayed.any advise greatly received in advance.


    thanks for your time

    explorer

  2. #2
    DF VIP Member WTD's Avatar
    Join Date
    Mar 2001
    Location
    Tokyo, Japan
    Posts
    3,256
    Thanks
    0
    Thanked:        0
    Karma Level
    492

    Default Re: where to put images

    stick the images in a directory called images, and store the file name in the database. you then create the html to display the images on the fly, using the data pulled out the database.

    You can still limit the to 10 photo's by using the LIMIT sql clause to limit it to a number of results.

    I find it easier to store images in a directory, and reference them through filenames held in a db (for gallery style sites). No real reason, just personal preference, and a lot quicker to get started on.

    Cheers

  3. #3
    DF Member explorer's Avatar
    Join Date
    Jan 2004
    Location
    rotherham
    Posts
    26
    Thanks
    0
    Thanked:        0
    Karma Level
    249

    Default Re: where to put images

    Thanks for your reply WTD.At the moment
    I am reading sql but it only covers select,
    insert,update and delete.I will have to have
    a look at LIMIT sql clause on the internet as
    my ebook does not cover much sql.

    thanks

  4. #4
    DF VIP Member WTD's Avatar
    Join Date
    Mar 2001
    Location
    Tokyo, Japan
    Posts
    3,256
    Thanks
    0
    Thanked:        0
    Karma Level
    492

    Default Re: where to put images

    Just put it at the end mate.

    Code:
    select * from images where description like '%exam%' order by date_added desc limit 0, 10

  5. #5
    DF Member explorer's Avatar
    Join Date
    Jan 2004
    Location
    rotherham
    Posts
    26
    Thanks
    0
    Thanked:        0
    Karma Level
    249

    Default Re: where to put images

    Quote Originally Posted by WTD
    Just put it at the end mate.

    Code:
    select * from images where description like '%exam%' order by date_added desc limit 0, 10
    Thanks for your help WTD m8 and the code.

    cheers :thumbs

Similar Threads

  1. Grabbing images
    By growler in forum PC Software
    Replies: 8
    Last Post: 18th December 2002, 06:45 PM
  2. Running DVD images from xbox HDD
    By grambo in forum Microsoft Consoles
    Replies: 0
    Last Post: 6th November 2002, 12:33 AM
  3. Making Dreamcast CD images
    By pmr4ever in forum Old Skool Gaming & Retro
    Replies: 1
    Last Post: 14th October 2002, 11:10 PM
  4. help! Broken images in games
    By coladuna in forum PC Hardware
    Replies: 3
    Last Post: 7th October 2002, 04:43 AM
  5. How do i burn ps2 images???
    By standard14 in forum Sony Consoles
    Replies: 2
    Last Post: 26th September 2002, 12:50 PM

Social Networking 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
  •