Guest_imported
New member
- Jan 1, 1970
- 0
Hello, first of all, please let me briefly explain the problem I'm facing:
Basically I've stored some images in MySQL database and, I would like to pull those images out together with their width and height. In my confusion,I thought I can use getimagesize function to get it worked:
..........
.........
while($i=mysql_fetch_array($result)){
$wh=getimagesize("$i['image']"
print("Width=wh[0] Height=$wh[1]"
........
And,here's the error I've got:
Warning: getimagesize: Unable to open '??? for reading
Actually I have an alternative way which is to store the width and height of an image into database before uploading it ,yet I hope I could get those info dynamically.
I think the main problem is that php doesn't recognize $i['image'] as an image file since it's stored as 'blob'
It really drives me crazy.I've been working for a couple days on this stuff.
I hope someone could maybe help me figure out why. Thank you very much.
Basically I've stored some images in MySQL database and, I would like to pull those images out together with their width and height. In my confusion,I thought I can use getimagesize function to get it worked:
..........
.........
while($i=mysql_fetch_array($result)){
$wh=getimagesize("$i['image']"
print("Width=wh[0] Height=$wh[1]"
........
And,here's the error I've got:
Warning: getimagesize: Unable to open '??? for reading
Actually I have an alternative way which is to store the width and height of an image into database before uploading it ,yet I hope I could get those info dynamically.
I think the main problem is that php doesn't recognize $i['image'] as an image file since it's stored as 'blob'
It really drives me crazy.I've been working for a couple days on this stuff.
I hope someone could maybe help me figure out why. Thank you very much.