Skip to Content
0
Former Member
Mar 07, 2007 at 02:28 PM

servlet output data is modified by portal when deployed in iview - why?

20 Views

Hello again,

i developed an iView that functions as proxy for HTML-data from a RedDot LiveServer by integrating that data into its own output stream.

The iView also shall do the same thing for all other media files (images,css,javascript) through a dedicated proxy servlet.

This is accomplished by modifying all links to such files in the HTML to point to that proxy servlet.

I have developed the servlet as its own application and deployed it via ear file.

This way it works exactly as it is supposed to.

Then I copied the servlet classes into the iView, modified the portalapp.xml accordingly, so the servlet can be called via URL.

<u>My problem now is the following:</u>

The servlet as part of the iView generates different output than the servlet deployed via ear file. This is critical for all types of binary files like images as they become invalid/corrupt. It looks like the portal does some kind of Unicode conversion with the bytes.

Anyway, how can i prevent whatever "post-processing" the portal does to the output for my proxy servlet?

The servlet correctly sets the content-type for the response, so that should not be the problem.

I already read these threads but did not find useful information for my problem:

Generating images (GIF) from iViews

How to display binary content in EP 5.0?

Any help would be appreciated.

If that topic has already been dicussed, please just point me to the thread(s), I did not find anything helpful right now.

Greetings, Roland