Hi.
I have a little problem: I'm writing to response content of the file and return it to the client as an ajax response.
But there occurs html substitution: of >
to >
etc...
What i have to do to make this substitution off ?
res.setHeader( "Cache-Control", "must-revalidate, post-check=0, pre-check=0" );
res.setHeader( "Pragma", "public" );
res.setContentType( "text/html" );
TIA
update
// import com.ibm.useful.http.PostData;
PostData pd = new PostData( req );
final FileData data;
try {
data = pd.getFileData( "sqlFile" );
ByteArrayOutputStream buf = new ByteArrayOutputStream();
for ( byte b : data.getByteData() ) {
buf.write( b );
}
res.getWriter().print( buf.toString() );
}
i watched buf.toString()
through debugger. it's ok there. substitution goes further. but where...