|
-
Aug 7th, 2002, 04:22 AM
#1
Thread Starter
Hyperactive Member
Convert image to data
How can I convert image (jpg,gif) to data until I can save it in database
-
Aug 7th, 2002, 08:58 AM
#2
Fanatic Member
I am not sure what you are asking but i would assume by using the fread() function? if that is what you are attempting...
-
Aug 7th, 2002, 01:01 PM
#3
Frenzied Member
just insert the image into your mysql table as a blob.
-
Aug 7th, 2002, 01:17 PM
#4
Thread Starter
Hyperactive Member
Yes !!! blob
Please M.R phpman .. I want an example
-
Aug 7th, 2002, 01:20 PM
#5
Stuck in the 80s
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.
-
Aug 7th, 2002, 01:22 PM
#6
Frenzied Member
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.
-
Aug 7th, 2002, 01:37 PM
#7
Thread Starter
Hyperactive Member
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
-
Aug 7th, 2002, 01:39 PM
#8
Fanatic Member
they are just pointing out that it has no practical purpose, none that I can see anyway
-
Aug 7th, 2002, 01:40 PM
#9
Frenzied Member
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
-
Aug 7th, 2002, 01:43 PM
#10
Stuck in the 80s
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|