D
ds
Launch an exe from Servlet based on mime-type.
Hi,
I launch a windows based program to handle a custom-defined mime
type. Eg: my mime-type = .opti. When a servlet posts a buffered
stream along with correctly set header
response.SetHeader("Content-disposition", "attachment; filename=" +
"Example.opti" );
.... I am able to launch "myprog.exe". (I have already made this
association with OS)
I can get the filepath where the buffered stream is supposed to be
stored by GetCommandLine(), but when I try to read this file, it
returns null ptr. This (Example.opti) is a temporary internet file and
I dont know how to read this. I am not able to get any data associated
with this stream. Is there any MFC API that would do this for me?
Thank you,
D.
Hi,
I launch a windows based program to handle a custom-defined mime
type. Eg: my mime-type = .opti. When a servlet posts a buffered
stream along with correctly set header
response.SetHeader("Content-disposition", "attachment; filename=" +
"Example.opti" );
.... I am able to launch "myprog.exe". (I have already made this
association with OS)
I can get the filepath where the buffered stream is supposed to be
stored by GetCommandLine(), but when I try to read this file, it
returns null ptr. This (Example.opti) is a temporary internet file and
I dont know how to read this. I am not able to get any data associated
with this stream. Is there any MFC API that would do this for me?
Thank you,
D.