WebSite X5Help Center

 
Graeme G.
Graeme G.
User

PhpMyAdmin database - how to get images sent to it?  en

Автор: Graeme G.
Просмотрено 746, Подписчики 2, Размещенный 0  

Hi - I am trying to collect data via this link https://www.topek.co.uk/projects.html

Everything is successfully making its way into the database except the images, the image file names appear but not the actual images, how can I get the database to store the actual images and them be available to download?
Thanks!

Размещено
3 Ответы
Axel  
Axel  
User
Лучший пользователь месяца FR

Hello,

In your DB you need to define the field with "Blob" to stock file directly into your DB and to get it after

https://www.tutorialspoint.com/What-is-BLOB-data-type-in-MySQL

But it's not the best because your DB will grow quickly.

The best is to have the file name into you DB, the put the file on your disk and to get the file by path\DB_filename. Like that your DB will not be populate by files.

Hope this helps

https://wsx5.afsoftware.fr

Читать больше
Размещено От Axel  
Graeme G.
Graeme G.
User
Автор

Thanks for the reply - do you have a step by step instruction for how to do this? Please see attached there is a BLOB data appearing in the field at the top, but I need step by step instructions on how to program this. Thanks!

Читать больше
Размещено От Graeme G.
Axel  
Axel  
User
Лучший пользователь месяца FR

check you DB structure to see if the type is blob for your field

Use google to check on how to. I have nothing ready 

https://wsx5.afsoftware.fr

Читать больше
Размещено От Axel