Plugin to read binary data and render it to browser as .png,.jpg etc etc

I have images stored in a table as binary (decoded/encoded base64) and wish to render them in a browser as varying image formats (jpg, png etc etc etc). I have tried Fleximage but am having absolutely no joy with that at all. Can anyone recommended a plugin which will enable me to do this?