AdoDb.stream uploading problem

xiaoxiao2021-03-06  73

Recently, I want to read various types of files in accordance with ASP, including self-cord format files, read with adoDb.stream, but there is a problem, I have the following code, there is no problem. But in other machines The word prompt appears in the wrong bank cannot read the file, an error. Dear prawns save me, how is this, if you don't support adodb.stream, then you should report an error in the first line!

I also tried to attack without fear, but until a limited number of formats, such as pictures, text. Can be some special not support!

Set objStream = Server.CreateObject ( "ADODB.Stream") objStream.Type = 'adTypeBinary objStream.Open' response.write strfilename objStream.LoadFromFile 1 "f: /jiangai.mp3" 'wrong line' 'strFileName objStream.SaveToFile Server. MAPPATH (URL), 2 Objstream.Close

转载请注明原文地址:https://www.9cbs.com/read-109576.html

New Post(0)