http://www.csdn.net/expert/topic/529/529306.xml?temp=.6462671

解决方案 »

  1.   

    VBScript
    用ado中的strame对象吧,具体点样用,查查MSDN吧,那里有详细例子
      

  2.   


    sqlserver中字段设置为image
    <%
    FormSize=Request.TotalBytes
    if FormSize>0 then
    FormData=Request.BinaryRead(FormSize)
    bnCRLF=chrB(13) & chrb(10)
    Divider=LEFTB(FormData,INSTRB(FormData,bnCRLF)-1)
    DataStart=INSTRB(FormData,bnCRLF & bnCRLF)+4
    DataEnd=INSTRB(DataStart+1,FormData,Divider)-DataStart
    content=MIDB(FormData,DataStart,DataEnd)
    sql="select * from file"

    set conn=server.createobject("adodb.connection")
    conn.open 数据库连接字符串
    set rs=server.createobject("adodb.recordset")
    rs.open sql,conn,2,3

    if rs.eof then rs.addnew
    rs("content").appendchunk content
    rs.update

    rs.close
    set rs=nothing
    conn.close
    set conn=nothing

    response.write "<a href=RESULT.ASP>上传结果</a>"
    end if
    %>
    <form enctype="multipart/form-data" action=upload.asp method=post>
    <input name=picture type=file accept="image/gif"><input type=submit value="上传图片">
    </form>ps:ado中stream是操作二进制文件的
      

  3.   

    请问你是怎么将图片放入content中的
      

  4.   

    rs("content").appendchunk content用appentChunk方法,切记content是image(sql server)
      

  5.   

    能不能再详细一点。
    我有一个这样的程序
    <form method = "post" action = "SaveImage.asp">
      <input type = "file" name = "edtFileDir">
    </form>edtFileDir为在硬盘上的图片路径
    在SaveImage.asp中应该如何写
      

  6.   

    现成的代码,要不要,拿去修改一下,就可以用了。想要的话,短信中告诉你的eamil,我给你发过来。