Thanks Jeff,
I wish I could get away with this problem. However i want to try my best before giving up.
I have tried to write to a file which is named "xxx.gif/xxx.jpg" and put the exact path of this file in the src tag (adp file). But it also didn't help. I am tried almost every combination with mime types. It is only working fine with text/plain.
Actually, it does matter when you have an option to upload multiple portraits and if you can see them all together in your workspace. That is why I am tring this option.
Have you ever done this before? or anybody else?
Thanks again,
Anjani.