Download Image (database)

Looking to find the solution of downloading image from grid using image(database). I am needing to download the image file name as well and not the sc_name its give from a default value. I am sure i have seen this before but i am unable to find the thread. I believe it was on there old knowledge base.

Any thoughts or guidance?