Re: Stream Windows Executable From Linux Machine

2008-09-08 Thread Gabriel Belingueres
I was actually intrigued by the fact that the content length in the
stream result is actually setting the content-length HTTP header [1],
which from the HTTP doc it represents the "message body length", but
I'm not sure that the message body length is EXACTLY the same as the
attached file size.

I wonder if all that MIME descriptive data in the HTTP response is
part of the "message body", and if that's the case, I suppose it is
better always NOT specify any content length at all in the stream
result.

[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13

2008/9/6 Dave Newton <[EMAIL PROTECTED]>:
> --- On Sat, 9/6/08, Martin Gainty wrote:
>> Interested to know how you can make a windows binary work
>> on linux is this a shared object that has been dos-compiled?
>> Do you have an alias setup to associate .exe to shell to a
>> mono environment?
>
> If I understood the original poster correctly the binary is being streamed 
> *from* a Windows or Linux machine.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Stream Windows Executable From Linux Machine

2008-09-06 Thread Dave Newton
--- On Sat, 9/6/08, Martin Gainty wrote:
> Interested to know how you can make a windows binary work
> on linux is this a shared object that has been dos-compiled?
> Do you have an alias setup to associate .exe to shell to a
> mono environment?

If I understood the original poster correctly the binary is being streamed 
*from* a Windows or Linux machine.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Stream Windows Executable From Linux Machine

2008-09-06 Thread Martin Gainty

Good Morning Geoffrey

Interested to know how you can make a windows binary work on linux
is this a shared object that has been dos-compiled ?
Do you have an alias setup to associate .exe to shell to a mono environment?

Thanks,
Martin Gainty 

__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Fri, 5 Sep 2008 13:52:31 -0300
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: Re: Stream Windows Executable From Linux Machine
> 
> Interesting.
> Never used myself the contentLength parameter before.
> 
> You may want trying to provide a hint of the attached file size by
> writing it this way:
> 
> attachment; filename=setup.exe;
> size=43665667
> 
> 
> 2008/9/5, Geffrey Caruso <[EMAIL PROTECTED]>:
> > I actually figured it out, I had to remove the contentLength parameter from
> > the results XML.
> >
> > After I did that it started working fine on Linux.
> >
> > -Original Message-
> > From: Gabriel Belingueres [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 05, 2008 10:15 AM
> > To: Struts Users Mailing List
> > Subject: Re: Stream Windows Executable From Linux Machine
> >
> > filename= setup.exe
> > is there an space there? (try removing it)
> >
> > what you mean by corrupt?
> >
> > 2008/9/5, Geffrey Caruso <[EMAIL PROTECTED]>:
> > > Quick question for anyone who's tried this before.
> > >
> > >
> > >
> > > I've got a windows executable created using NSIS from a wrapped jar file.
> > >
> > >
> > >
> > > I've got the following Stream Result for use in downloading it.
> > >
> > >
> > >
> > > When it's on a windows machine it works fine, but when I transfer
> > everything
> > > to Linux the file is corrupt once downloaded.
> > >
> > >
> > >
> > >   
> > >
> > >  > > name="contentType">application/octet-stream
> > >
> > >  43665667
> > >
> > >   inputStream
> > >
> > >   attachment;
> > > filename= setup.exe
> > >
> > >   2048
> > >
> > >
> > >
> > >
> > >
> > >
> > > I can FTP directly to the Linux machine and download the same file and it
> > > works fine so I know there is nothing wrong with the file it must be
> > somehow
> > > getting corrupted during the streaming process.
> > >
> > >
> > >
> > > Has anyone had this problem and if so how did you fix it?
> > >
> > >
> > >
> > > Geffrey Caruso
> > >
> > > Senior Software Engineer
> > >
> > > MobilVox, Inc
> > >
> > > http://www.mobilvox.com
> > >
> > > ( (724) 349-3339 x320
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: Stream Windows Executable From Linux Machine

2008-09-05 Thread Gabriel Belingueres
Interesting.
Never used myself the contentLength parameter before.

You may want trying to provide a hint of the attached file size by
writing it this way:

attachment; filename=setup.exe;
size=43665667


2008/9/5, Geffrey Caruso <[EMAIL PROTECTED]>:
> I actually figured it out, I had to remove the contentLength parameter from
> the results XML.
>
> After I did that it started working fine on Linux.
>
> -Original Message-
> From: Gabriel Belingueres [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 05, 2008 10:15 AM
> To: Struts Users Mailing List
> Subject: Re: Stream Windows Executable From Linux Machine
>
> filename= setup.exe
> is there an space there? (try removing it)
>
> what you mean by corrupt?
>
> 2008/9/5, Geffrey Caruso <[EMAIL PROTECTED]>:
> > Quick question for anyone who's tried this before.
> >
> >
> >
> > I've got a windows executable created using NSIS from a wrapped jar file.
> >
> >
> >
> > I've got the following Stream Result for use in downloading it.
> >
> >
> >
> > When it's on a windows machine it works fine, but when I transfer
> everything
> > to Linux the file is corrupt once downloaded.
> >
> >
> >
> >   
> >
> >  > name="contentType">application/octet-stream
> >
> >  43665667
> >
> >   inputStream
> >
> >   attachment;
> > filename= setup.exe
> >
> >   2048
> >
> >
> >
> >
> >
> >
> > I can FTP directly to the Linux machine and download the same file and it
> > works fine so I know there is nothing wrong with the file it must be
> somehow
> > getting corrupted during the streaming process.
> >
> >
> >
> > Has anyone had this problem and if so how did you fix it?
> >
> >
> >
> > Geffrey Caruso
> >
> > Senior Software Engineer
> >
> > MobilVox, Inc
> >
> > http://www.mobilvox.com
> >
> > ( (724) 349-3339 x320
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Stream Windows Executable From Linux Machine

2008-09-05 Thread Geffrey Caruso
I actually figured it out, I had to remove the contentLength parameter from
the results XML.

After I did that it started working fine on Linux.

-Original Message-
From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 05, 2008 10:15 AM
To: Struts Users Mailing List
Subject: Re: Stream Windows Executable From Linux Machine

filename= setup.exe
is there an space there? (try removing it)

what you mean by corrupt?

2008/9/5, Geffrey Caruso <[EMAIL PROTECTED]>:
> Quick question for anyone who's tried this before.
>
>
>
> I've got a windows executable created using NSIS from a wrapped jar file.
>
>
>
> I've got the following Stream Result for use in downloading it.
>
>
>
> When it's on a windows machine it works fine, but when I transfer
everything
> to Linux the file is corrupt once downloaded.
>
>
>
>   
>
>  name="contentType">application/octet-stream
>
>  43665667
>
>   inputStream
>
>   attachment;
> filename= setup.exe
>
>   2048
>
>
>
>
>
>
> I can FTP directly to the Linux machine and download the same file and it
> works fine so I know there is nothing wrong with the file it must be
somehow
> getting corrupted during the streaming process.
>
>
>
> Has anyone had this problem and if so how did you fix it?
>
>
>
> Geffrey Caruso
>
> Senior Software Engineer
>
> MobilVox, Inc
>
> http://www.mobilvox.com
>
> ( (724) 349-3339 x320
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Stream Windows Executable From Linux Machine

2008-09-05 Thread Gabriel Belingueres
filename= setup.exe
is there an space there? (try removing it)

what you mean by corrupt?

2008/9/5, Geffrey Caruso <[EMAIL PROTECTED]>:
> Quick question for anyone who's tried this before.
>
>
>
> I've got a windows executable created using NSIS from a wrapped jar file.
>
>
>
> I've got the following Stream Result for use in downloading it.
>
>
>
> When it's on a windows machine it works fine, but when I transfer everything
> to Linux the file is corrupt once downloaded.
>
>
>
>   
>
>  name="contentType">application/octet-stream
>
>  43665667
>
>   inputStream
>
>   attachment;
> filename= setup.exe
>
>   2048
>
>
>
>
>
>
> I can FTP directly to the Linux machine and download the same file and it
> works fine so I know there is nothing wrong with the file it must be somehow
> getting corrupted during the streaming process.
>
>
>
> Has anyone had this problem and if so how did you fix it?
>
>
>
> Geffrey Caruso
>
> Senior Software Engineer
>
> MobilVox, Inc
>
> http://www.mobilvox.com
>
> ( (724) 349-3339 x320
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]