Results 1 to 4 of 4

Thread: Blob

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Blob

    Hello world,

    Can you please help me.I have a blob field and want to insert and read image, but don't know how to do that.I want to insert data with images into mysql db and then read that in php.


    Thank a lot

  2. #2
    Join Date
    Jan 2008
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I would recommend not using the BLOB to store the image in. It can dramatically increase the size of your database and FAST! I would recommend uploading the images to the server and only storing the path to the image in the database.

  3. #3
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Blob

    Quote Originally Posted by nrglift View Post
    I would recommend not using the BLOB to store the image in. It can dramatically increase the size of your database and FAST! I would recommend uploading the images to the server and only storing the path to the image in the database.
    thank your advise friend, but I dont know how to upload with the other text data and then display the current image for the current data.example.

    ID = 1001
    Name = Valencia
    Image = Val.jpg


    thanks again

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Here's a good tutorial for what you want to do using PHP/MySQL.

    http://www.php-mysql-tutorial.com/image-gallery/
    http://www.php-mysql-tutorial.com/up...ile-server.php

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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
  •