[solved] fetching a image from the database - Joomla! Forum - community, help and support
hi im new joomla, looks great
i building own component im listing number of tumbnails stored in database. how fetch image database , show on page without compromising joomlas direct access php files protection....
i mean want know how make clean echo of data in database can use file src in img html tag
any code snippets ? or suggestions
thanks lot
mod note: added solved topic have nice day
i building own component im listing number of tumbnails stored in database. how fetch image database , show on page without compromising joomlas direct access php files protection....
i mean want know how make clean echo of data in database can use file src in img html tag
any code snippets ? or suggestions
thanks lot
mod note: added solved topic have nice day
welcome joomla!
you can store filename plain text (fieldtype: varchar) in database, query field , echo field within html img tag (as proposed).
you won't compromise "direct access not allowed" protection on joomla's php files: images not protected that.
make sure permissions of files ok (on files: chmod 644).
ps: it's possible store whole image in database (in field type: blob), not recommend that.
you can store filename plain text (fieldtype: varchar) in database, query field , echo field within html img tag (as proposed).
you won't compromise "direct access not allowed" protection on joomla's php files: images not protected that.
make sure permissions of files ok (on files: chmod 644).
ps: it's possible store whole image in database (in field type: blob), not recommend that.
Comments
Post a Comment