Results 1 to 5 of 5

Thread: adding photos to site and urls to database

  1. #1
    Join Date
    Mar 2007
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default adding photos to site and urls to database

    I want to set up a database that gets images from their url rather than having them in the database to avoid space problems. The issue is I'm setting up an admin so other people could add an image from their computer or a url.

    Can I code the form so that the photo is uploaded into a folder and the database retrieves the local file?

  2. #2
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    Sure. Exactly what part do you need help with coding?
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  3. #3
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    in your database make a record for what ever you are trying to store with the other info and in the record have a field for the image, and store the url of the image there

    then just make sure that the url points to the actual image uploaded onto the site

  4. #4
    Join Date
    Mar 2007
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well say a user puts in a picture that is either uploaded or from a url, how do I get the program to copy the image in a folder under a new name and then have the database point to that new location?

    I'm new to image data so pointing me in some direction to look up would be wonderful. Thanks!

  5. #5
    Join Date
    Apr 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by llorax View Post
    well say a user puts in a picture that is either uploaded or from a url, how do I get the program to copy the image in a folder under a new name and then have the database point to that new location?

    I'm new to image data so pointing me in some direction to look up would be wonderful. Thanks!

    I think this place offer something you might like...CLICK HERE
    Sami

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
  •