Are you trying to get your ISAPI to send a file?
You have a link on your web page that when the users clicks, will show him
the "Save As" dialog?
If you know how to stream the file out from your ISAPI, then you're ok. All
you need to do is set the ContentType to "application/octetstream" (without
the quotes) instead of say "image/jpeg". If you're not sure how to stream
back an image, take a look at my web site for tutorials on the same.
--
Shiv
The Delphi Apostle
http://www.matlus.com
Content-Disposition:
is the name and
attachment; filename="myfilename.zip"
is the value.
So browser receives:
Content-Disposition: attachment; filename="myfilename.zip"
IE will display Save As dialog and will sugest myfilename.zip as filename
for saved file.
Martin
"Raúl Armando Valadez Estrada" <macg...@cantera.reduaz.mx> wrote in message
news:97gsi4$qv...@bornews.inprise.com...
> I have a problem with my isapi, It reads a text file with a file encoded
> with mime on it, the isapi only response the name of the file like a link
to
> other isapi, for example: <a
> href=/scripts/attachments.dll?file=image.zip">image.zip</a> then
> attachments.dll response the mime code of this file, then the window of
save
> file or open appears, and save the file and then I tried to open the file
is
> corrupt, I use response.contenttypt:='image/jpeg' or
> 'application/octecstream' and other, but nothing happens, how can I
convert,
> the text file to only open the save as window, and save the file where
ever
> its content be.
>
>
> .....
> ....
> .
> Response.ContentType:=contentype; <----- it contains the mime content
type
>
> if request.QueryFields.Values['file']=filename then
> begin
>
> response.ContentEncoding:=response.ContentEncoding+s+#13#10;
> OR
> response.content:=response.content+s+#13#10;
>
> S (string)<----- is readln (file,s);
> ..
> .
> . Any Clue??
> pd, Sorry about my english.
>
>
>
>