php - phpLiteAdmin - Adding Images -


an application presently working on requires sqlite database. not 1 maintaining database believe tremendously beneficial use tool such phpliteadmin. however, need way store image blob in table (i know there pitfalls storing actual image data in database, purposes believe best approach). there way gui tool such phpliteadmin or not? somehow write custom function implement behavior if available default?

thanks much!

as alternative, store image's file name in char type column. example, there column img_filename in table. can show image in html <img src='...'> tag:

<?php  // database query here // ...  print "<img src='".$row['img_filename']."' />"   ?> 

Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -