Results 1 to 10 of 10

Thread: Convert image to data

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259

    Convert image to data

    How can I convert image (jpg,gif) to data until I can save it in database

  2. #2
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    I am not sure what you are asking but i would assume by using the fread() function? if that is what you are attempting...
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  3. #3
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    just insert the image into your mysql table as a blob.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259

    Yes !!! blob

    Please M.R phpman .. I want an example

  5. #5
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Why do you want to save it to a database?

    Just save the images in a folder and then save their URL in the database.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    yes HObo has it correct. you save imges in the database and it will become huge fast.

    what in the hell are you making anyway.

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259

    Ok

    Originally posted by The Hobo
    Why do you want to save it to a database?

    Just save the images in a folder and then save their URL in the database.
    I know that but I want to learn how can I convert image to data .. because I read that this is enable in php language

  8. #8
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    they are just pointing out that it has no practical purpose, none that I can see anyway

  9. #9
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337

    Re: Ok

    Originally posted by prokhaled


    I know that but I want to learn how can I convert image to data .. because I read that this is enable in php language
    no, mysql does all the work

  10. #10
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by phpman
    yes HObo has it correct. you save imges in the database and it will become huge fast.

    what in the hell are you making anyway.
    Then do a search on "blob." It's been asked before. I know the search is busted, so just wait a tick. I'm pretty sure life isn't going to explode if you can't put your images in a database.
    My evil laugh has a squeak in it.

    kristopherwilson.com

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