How are you encoding the file?
There isn't built in support for PSD files so you'll need a third party encoder or you'll have to write your own encoding code.