How can I save/export to disk a resource image from LS?

I need to create a dinamic HTML with some images storaged in the DB as Resource Images.