Hi,
I used a nightly build version from december in
my project. Now I want to update to last version from svn but I have a problem
when transferring files from server to client. I generate pdf and rtf files on
server and then try to send them to client.
Using the version from december everything is ok.
The file gets correctly into the clients window.
But using the last version from svn the client
gets a file bigger than that from server and for pdf format it is not
correctly, so the user see a blank page. The rtf files seems to have problems
with encoding. Some characters from it are correctly recognized, some not. I
am using ISO-8859-2 charset.
I checked the files from server and they are
good.
The procedure used for sending bytes is
this:
in = new
FileInputStream(filePath);
byte[] byteContent = new
byte[in.available()];
in.read(byteContent);
out.write(byteContent);
out.flush();
The OutputStream out is obtain from
this:
FacesContext facesContext =
FacesContext.getCurrentInstance();
HttpServletResponse response =
(HttpServletResponse)facesContext.getExternalContext().getResponse();
ServletOutputStream ouputStream =
response.getOutputStream();
Any known changes regarding this?
Thanks,
Alin.