Hi Everyone,
I have a Flex application passing in a base64 encoding
String to a
Servlet. I am then taking that String and converting it to a BufferedImage so I can display to the user. I have tested with Flex encoding and decoding the image and saving it directly from the Flex application and the image looks perfect so I don't think the encoding on the Flex end is an issue.
When I do the conversion in
Java and display it to the user it loses quality somewhere along the way and I just for the life of me figure out why. Below is the code I'm using to take the base64 encoded String out of the request, convert it to a BufferedImage and output it to the page.
Yes it's kinda gross but it's a long story of why it needs to be displayed on a new tab instead of just giving the user a save dialog. If anyone has any ideas of why it would be losing quality(or just another way to do it) it would be greatly appreciated. Thanks.