I am using Smarty as templates in my site...I have images stored as blob in db i can get this blob to image using header(content-type: image/jpg) but i wann to assign this image to smarty variable How to do that? please help me
bhavnagadhiya, you are correct, but if you study the discussion given in my last post you will see how you can accomplish what you desire. You have a php script that accepts an image identifier and retrieves it from the database table. Then, at the end of that script you print out the appropriate header as well as the binary image data. You refer to this script in your <img> element in the HTML. Read the example again carefully and you will see how it is done.