HighDots Forums  

Execute Java program from file extension

alt.html alt.html


Discuss Execute Java program from file extension in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nospam
 
Posts: n/a

Default Execute Java program from file extension - 01-14-2008 , 07:59 PM






Hello,

Hmmm, I have a plumbing problem - and it is difficult to explain.
I need to connect a Java program on the client to some server XML codes.

Basically, I've been given a Java program to execute on client side.
When the user hits the "Download" button, the server creates an XML file
and send it to the client as a file with the file extension ".rcm".
This file extension has already been registered via an install program on
the client.
It will then spawn/execute the client Java program.

I'm not sure what is the server-side response that I have to send to the
client before the actual data ( that is the ".rcm" file).

Is there some magic HTTP header that I send that can get this to work?

Here is a stab at what I thought would do it:

Content-type: application/octet-stream
'Content-Length: '. filesize(4096)

Content-Disposition: attachment; filename='MYFILE.RCM"


Thanks in advance for you help.

Regards,
bruce



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.