473,398 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Exe cannot read bufferedstream from http port.

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.

Jul 22 '05 #1
1 1628
"ds" <di**********@gmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
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?


I don't see a single question about C++ in your message.
Before posting here again, please see:
http://www.slack.net/~shiva/welcome.txt
Thank you.

MFC questions should be directed to newsgroup:
microsoft.public.vc.mfc

You may also find Microsoft's developer resource site to
be useful: www.msdn.microsoft.com

If your news server does not have it, you can connect
to Microsoft's public news server at msnews.microsoft.com

-Mike
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: mike | last post by:
regards: I use Jtidy (api) to translate a HTML file into a "XHTML file". But The "XHTML file" cannot be identified by nokia 6600. Do I miss something important? Or this is Jtidy's weakness or...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
1
by: Niels Johansen | last post by:
Hello, When using the asynchronous read method in the BufferedStream class, , it seems to me that it blocks like the normal synchronous read method. Why is it so? Why does the...
4
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
4
by: naveed | last post by:
I have the simple Hello World web service running in debug mode on my development machine (XP Pro SP2). I'm using VS2005. I'm able to access it from my machine. When I try to access it from...
3
by: curt.bathras | last post by:
I am trying to open and read a file using the following: BufferedStream stream = new BufferedStream(File.OpenRead(aFilename)); If the file specified by aFilename is being used by another...
0
by: John Bailo | last post by:
I am using a StreadReader in an ftp put process. The problem is the .Read() method can stall or hang, and there is no built in timeout or error thrown. Is there a way to throw an exception, or...
1
by: vhrao | last post by:
I created asp.net project with location http://localhost/proj1, which works fine. Now I found out that I have to change port from 80 to 8080. I changed TCP port for deafult website from 80 to...
1
by: Laszlo Nagy | last post by:
Hi All, I'm using a simple program that uploads a file on a remote ftp server. This is an example (not the whole program): def store(self,hostname,username,password,destdir,srcpath):...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.