View Full Version : Blob
Arsench
01-07-2008, 02:46 PM
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
nrglift
01-07-2008, 04:06 PM
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.
Arsench
01-07-2008, 04:17 PM
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
thetestingsite
01-07-2008, 04:33 PM
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/upload-to-file-server.php
Hope this helps.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.