Skip to Main Content

Byte data sent to servlet after encoding it to String doesnt display the image?

vo12Aug 12 2013

I have image in byte data. I want to display image using servlet.

To pass data to servlet as parameter i need to convert byte array to string as i cant pass byte array as arguements.

I am using Base64 to encode and decode to String and byte[] respectively.

However when i use this approach image doesnt get display.

But when i directly call service in servlet to get string and decode to byte[] image gets displayed.

So is data getting lost when i call servlet from .jsff page with encoded string ?

Please help.

Post Details
Locked due to inactivity on Sep 9 2013
Added on Aug 12 2013
0 comments
1,186 views