hallo,
ich habe in meiner Webserver Applikation eine Datei in ein byte Array geladen.
Nun möchte ich diese Datei an den Client / Webbrowser senden.
Dazu muss ich doch im Response den Mime-type korrekt setzen und das das byte Array in den Response Stream setzen, oder?
Meine Frage wäre, kann ich einen quasi allgemeinen Mimetype setzen, welcher auf dem Client einen Dialog, "speichern unter" oder "öffnen" verursacht? Wenn ja, welcher wäre das?
There are 10 diffent types of people in this world: Those who understand binary and those who don't....
Ja, kannst du. Imho war das application/octet-stream
Hallo,
sieh mal hier:
http://www.codegod.de/WebAppCodeGod/datei-download-AID216.aspx
und hier: http://de.selfhtml.org/diverses/mimetypen.htm
Hilft das weiter?
Hallo,
wichtig bei mir ist halt, dass ich die Datei nicht als "wirkliche" Datei im Filesystem habe, sondern ich sie von einem remote-object als byte array übergeben bekomme.
Ich werde das mal ausprobieren. Danke schonmal
There are 10 diffent types of people in this world: Those who understand binary and those who don't....
Hallo,
ich habe es ausprobiert und es läuft prima. Danke euch.
There are 10 diffent types of people in this world: Those who understand binary and those who don't....