Ciao a tutti,
in un DB SQL ho incorporati dei file, devo scaricarli da browser, dopo tante prove e ricerche sono riuscito a fare una pagina che mi fa il download del file con nome ed estensione corretta.
Fa il download ma poi non si aprono che siano .doc .pdf .dxf ecc ecc
word lo apre in testo ascii come posso fare?????![]()
ecco il codice:
<%
Response.ContentType = "application/octet-stream"
' let the browser know the file name
Response.AddHeader "Content-Disposition", "attachment;filename=" & Trim(REPOSITORY("FileName"))
Response.BinaryWrite REPOSITORY("FileData")
%>