O q está errado no meu código para inserir binario ?
Olá pessoal o código é o seguinte :
Set Objstr = Server.CreateObject("ADODB.Stream")ObjStr.Type = 1 ObjStr.OpenObjstr.LoadFromFile "c:/teste.txt"MyBinaryData = ObjStr.ReadSet ObjStr = NothingResponse.ContetType = "application/octet-stream"Response.AddHeader "Content-Disposition", "attachment;filename=teste.txt"Response.AddHeader "Content-Length", lenb(MyBinaryData)Response.BinaryWrite MyBinaryDataResponse.EndMas fala q não pode abrir o arquivo...
alguém pode me ajudar ??
vlw
abraços
Discussão (5)
Carregando comentários...