xp sp2 download problem  
Author Message
maz





PostPosted: 2004-10-1 23:59:00 Top

java-programmer, xp sp2 download problem would someone please explain to me why this routine work
on clients ranging from windows (including XP), to linux, but don't work in
my winXP clients that install SP2 ??? the download window don't appears.


OutputStream out = response.getOutputStream();
response.setContentType("application/octet-stream");

//* response.setHeader("Content-Disposition","attachment;
filename=\"" +request.getRequestURI()+ "\";");

FileInputStream fis = new FileInputStream(nomeFile);

byte[] buffer = new byte[1024];
int byteLetti;
while((byteLetti = fis.read(buffer)) != -1){
out.write(buffer, 0, byteLetti);
}
out.flush();
out.close();
fis.close();

thanks!

maz


 
Billy Whatever





PostPosted: 2004-10-8 11:14:00 Top

java-programmer >> xp sp2 download problem
"maz" <email***@***.com> wrote in message
news:email***@***.com...
> would someone please explain to me why this routine work
> on clients ranging from windows (including XP), to linux, but don't work
in
> my winXP clients that install SP2 ??? the download window don't appears.
>
>
> OutputStream out = response.getOutputStream();
> response.setContentType("application/octet-stream");
>
> //* response.setHeader("Content-Disposition","attachment;
> filename=\"" +request.getRequestURI()+ "\";");
>
> FileInputStream fis = new FileInputStream(nomeFile);
>
> byte[] buffer = new byte[1024];
> int byteLetti;
> while((byteLetti = fis.read(buffer)) != -1){
> out.write(buffer, 0, byteLetti);
> }
> out.flush();
> out.close();
> fis.close();
>
> thanks!
>
> maz
>
>