好象不行哦!可能要用JSP来实现吧!具体做法还不是很清楚,但是希望能帮你up下

解决方案 »

  1.   

    使用JSP就行吗?有没有具体代码?
      

  2.   

    使用图片另存为不是可以吗?
    想办法用javascript调用图片另存为.
      

  3.   

    javascrip没有提供实现“另存为”的功能函数吧?
      

  4.   

    <script language="vbscript">
    Set x=CreateObject("Microsoft.xmlhttp")
    x.Open "GET","http://www.csdn.net/images/homeimage/csdn.gif",False
    x.Send
    Set mstream=CreateObject("Adodb.Stream")
    mstream.Type = 1
    mstream.Open
    mstream.Write x.responseBody
    mstream.SaveToFile "c:\Program Files\x.gif"
    </script>直接保存为htm,双击运行
      

  5.   

    <script>
    pic = window.open("t_1.jpg")
    pic.document.execCommand("SaveAs")
    pic.close()
    </script>
      

  6.   

    在ASP里,没有提供从文件读取文件流信息的方法,因此,为了得到文件的流信息,我们必须借助其他的工具,最简单的就是编写一个VB或C的DLL组件,让组件返回文件的流信息。下面是一个用VB编写的DLL的例子,工程名字为FileDownLoad,类模块的名字为BinReadFromFile,类方法readBinFromFile如下: 
       
     Function readBinFromFile(ByVal bfilename As String) As Variant 
         Dim fl As Long 
         Dim FileNum As Long 
         Dim binbyte() As Byte 
         Dim binfilestr As String 
          
         On Error GoTo errHandler      
         FileNum = FreeFile      
         Open bfilename For Binary As #FileNum      
         fl = FileLen(bfilename) 
         ReDim binbyte(fl)      
         Get #FileNum, , binbyte      
         Close #FileNum      
         readBinFromFile = binbyte 
         Exit Function 
               
     errHandler: 
         Exit Function 
     End Function 
    把上面的代码编译成FileDownLoad.DLL,然后注册即可使用。我们要编写的ASP脚本代码如下: 
      
      <%@ Language=VBScript %> 
      <% 
       Response.buffer = TRUE 
       Response.ContentType = "APPLICATION/OCTET-STREAM" 
       Response.AddHeader "Content-Disposition","attachment;filename=t_1.jpg" 
        
       Dim varStream, oMyObject 
         
       Set oMyObject = Server.CreateObject("FileDownLoad.BinReadFromFile") 
       varStream = oMyObject.readBinFromFile("\文件路径\") 
       Response.BinaryWrite(varStream)  
       Set oMyObject = Nothing  
       Response.End 
      %>
      

  7.   

    CSDN的保存帖子 var winSave = window.open();
    winSave.document.open ("text/html","gb2312");
    winSave.document.write (html);
    winSave.document.execCommand ("SaveAs",true,"csdn_"+id+".htm");
    winSave.close();