Hi Friends,

I have one EXE file that customer need to download from my website. But I
have one text file of Max 250 bytes of text in in that I want to append to
the END of the Binary EXE file and give that for download to user. How can I
do that. Please suggest. I think we need to go for some BinaryWrite kind of
procedure using ADO Stream.

Please suggest
Prabhat

Re: Write Data to Binary File by anilruia

anilruia
Sat Apr 29 11:18:19 CDT 2006

You could possibly use the document footer feature -
http://technet2.microsoft.com/WindowsServer/f/?en/Library/cd47396e-2149-461d-b6e7-bd1625f07fc11033.mspx


Re: Write Data to Binary File by Prabhat

Prabhat
Sat Apr 29 14:06:51 CDT 2006


<anilruia@gmail.com> wrote in message
news:1146327499.583271.88710@j33g2000cwa.googlegroups.com...
> You could possibly use the document footer feature -
>
http://technet2.microsoft.com/WindowsServer/f/?en/Library/cd47396e-2149-461d
-b6e7-bd1625f07fc11033.mspx
>

No. I want to append some Text (Content of some small text file having 2
lines: Ex: "MyText.txt") in one of the EXE file (Binary File) Ex:
"MyApplication.exe" using ASP, in webserver. How can I do that?




Re: Write Data to Binary File by David

David
Sat Apr 29 22:48:45 CDT 2006

Your choices:
1. Have IIS download the EXE file as a static file, and configure Footer for
that file only
2. Have an ASP page which reads the EXE file and BinaryWrite's the text file

Of course, you can do whatever you want. If you insist on writing ASP code,
go right ahead; most people prefer the Static File and Footer approach
because it's just configuration - no code necessary.

Aren't you corrupting the EXE by appending the text?

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"Prabhat" <not_a_mail@hotmail.com> wrote in message
news:%239N5TA8aGHA.5000@TK2MSFTNGP05.phx.gbl...
>
> <anilruia@gmail.com> wrote in message
> news:1146327499.583271.88710@j33g2000cwa.googlegroups.com...
>> You could possibly use the document footer feature -
>>
> http://technet2.microsoft.com/WindowsServer/f/?en/Library/cd47396e-2149-461d
> -b6e7-bd1625f07fc11033.mspx
>>
>
> No. I want to append some Text (Content of some small text file having 2
> lines: Ex: "MyText.txt") in one of the EXE file (Binary File) Ex:
> "MyApplication.exe" using ASP, in webserver. How can I do that?
>
>
>



Re: Write Data to Binary File by Prabhat

Prabhat
Mon May 01 01:08:50 CDT 2006


"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:usRL2jAbGHA.1192@TK2MSFTNGP04.phx.gbl...
> Your choices:
> 1. Have IIS download the EXE file as a static file, and configure Footer
for
> that file only
> 2. Have an ASP page which reads the EXE file and BinaryWrite's the text
file
>
> Of course, you can do whatever you want. If you insist on writing ASP
code,
> go right ahead; most people prefer the Static File and Footer approach
> because it's just configuration - no code necessary.
>
> Aren't you corrupting the EXE by appending the text?
>
> --
> //David
> IIS

Hi David,

Thanks for your suggestion. I did not know abt the Footer one. How can I do
that in IIS 5.0 on wi