Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

empty OutputStream

Hi,

I have a problem with the following code:

OutputStream outStrm = new ByteArrayOutputStream();

StreamResult strm = new StreamResult(outStrm);

HTTPStreamSource source = new HTTPStreamSource(request, "http://rss.news.yahoo.com/rss/world");

tService.transform(source, trns, paramsArray, context, null, strm);

String result = outStrm.toString();

bean.setPageFormatString(result);

The OutputStream stays empty and I can't figure out why... also because the code for having a String as output from an RSS-feed is taken from help.sap.com:

http://help.sap.com/saphelp_nw04/helpdata/en/4c/81de41f4ae0b7fe10000000a155106/frameset.htm

-->the very end of that page

Not what you were looking for? View more on this topic or Ask a question