Saving images in indexedDB

i am using indexedDB and i want to save images in database. how can i do that ?