一聚教程网:一个值得你收藏的教程网站

热门教程

ASP+上传文件语法

时间:2022-06-30 11:23:44 编辑:袖梨 来源:一聚教程网

这里有一个怎样用ASP+上传文件的非常简单例子





选择上传文件:







Here is a more complex example, which enables you to upload a file, and then using the System.Drawing APIs
to resize/crop the image, overlay a custom text message onto the image, and then save it back out to disk
as a .jpg (note that this sample works with *any* browser). I've written this one in C# -- but you would
obviously be able to use VB or JScript to do it as well:
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Imaging" %>