ShotGraph例程

下面是HTML文件用于上传3个文件

<blockquote>

<p><HTML> <br>

<BODY BGCOLOR="#FFFFFF"> <br>

<FORM METHOD="POST" ENCTYPE="multipart/form-data"

ACTION="Upload.asp"> <br>

<INPUT TYPE=FILE NAME="FILE1"><BR> <br>

<INPUT TYPE=FILE NAME="FILE2"><BR> <br>

<INPUT TYPE=FILE NAME="FILE3"><BR> <br>

<br>

<INPUT TYPE=TEXT NAME="DESCRIPTION"><BR> <br>

<br>

<SELECT NAME="CATEGORY" MULTIPLE><br>

<OPTION>Image<br>

<OPTION>Text<br>

<OPTION>Source Code<br>

<OPTION>Archive<br>

</SELECT><BR><br>

<br>

<INPUT TYPE=SUBMIT VALUE="Upload!"> <br>

</FORM> <br>

</BODY> <br>

</HTML> <br>

</font></p>

</blockquote>

上传程序(Upload.asp):

< %

Set Upload = Server.CreateObject("Persits.Upload.1")

‘ Upload files

Upload.OverwriteFiles = False ‘ Generate unique names

Upload.SetMaxSize 1048576 ‘ Truncate files above 1MB

Upload.Save "c:\upload"

‘ Process all files received

For Each File in Upload.Files

‘ Save in the database as blob

File.ToDatabase "DSN=data;UID=sa;PWD=zzz;", _

"insert into mytable(blob) values(?)"

‘ Move to a different location

File.Copy "d:\archive\" & File.ExtractFileName

File.Delete

Next

‘ Display description field

Response.Write Upload.Form("Description") & "

"

‘ Display all selected categories

For Each Item in Upload.Form

If Item.Name = "Category" Then

Response.Write Item.Value & "

"

End If

Next

% >

ShotGraph例程

时间: 2024-11-05 13:56:12

ShotGraph例程的相关文章

SparkContext, map, flatMap, zip以及例程wordcount

SparkContext 通常作为入口函数,可以创建并返回一个RDD. 如把Spark集群当作服务端那Spark Driver就是客户端,SparkContext则是客户端的核心: 如注释所说 SparkContext用于连接Spark集群.创建RDD.累加器(accumlator).广播变量(broadcast variables) map操作: 会对每一条输入进行指定的操作,然后为每一条输入返回一个对象: flatMap操作: "先映射后扁平化" 操作1:同map函数一样:对每一条

数据结构例程—— 交换排序之快速排序

本文是[数据结构基础系列(9):排序]中第5课时[交换排序之快速排序]的例程. 1.以第1个元素作为基准 #include <stdio.h> #define MaxSize 20 typedef int KeyType; //定义关键字类型 typedef char InfoType[10]; typedef struct //记录类型 { KeyType key; //关键字项 InfoType data; //其他数据项,类型为InfoType } RecType; //排序的记录类型定

数据结构例程——平衡二叉树

本文是[数据结构基础系列(8):查找]中第8课时[平衡二叉树]的例程. 平衡二叉树相关算法 #include <stdio.h> #include <malloc.h> typedef int KeyType; //定义关键字类型 typedef char InfoType; typedef struct node //记录类型 { KeyType key; //关键字项 int bf; //平衡因子 InfoType data; //其他数据域 struct node *lchi

zw版【转发&#183;台湾nvp系列Delphi例程】HALCON DirectFile

zw版[转发·台湾nvp系列Delphi例程]HALCON DirectFile unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, OleCtrls, HALCONXLib_TLB, StdCtrls, ExtCtrls;type TForm1 = class(TForm) HWindowXCtrl1: THWindowXCtrl

zw版【转发&#183;台湾nvp系列Delphi例程】HALCON CheckDifference

zw版[转发·台湾nvp系列Delphi例程]HALCON CheckDifference unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, OleCtrls, HALCONXLib_TLB;type TForm1 = class(TForm) HWindowXCtrl1: THWindowXCtrl; But

zw版【转发&#183;台湾nvp系列Delphi例程】.NET调用HALCON COM控件内存释放模式

zw版[转发·台湾nvp系列Delphi例程].NET调用HALCON COM控件内存释放模式 ------------------------------------方法一 :Imports System.Runtime.InteropServices Marshal.ReleaseComObject(COM物件)COM 物件 = Nothing 方法二 :COM 物件 = NothingGC.Collect()GC.WaitForPendingFinalizers() 方法三 :Import

zw版【转发&#183;台湾nvp系列Delphi例程】HALCON HImage与Bitmap格式转换

zw版[转发·台湾nvp系列Delphi例程]HALCON HImage与Bitmap格式转换 (Delphi Prism)namespace HImage_Bitmap_Prism;interfaceuses System.Drawing, System.Collections, System.Collections.Generic, System.Windows.Forms, System.ComponentModel, System.Drawing, System.Drawing.Imag

zw版【转发&#183;台湾nvp系列Delphi例程】HALCON AddNoiseWhite

zw版[转发·台湾nvp系列Delphi例程]HALCON AddNoiseWhite unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, OleCtrls, HALCONXLib_TLB;type TForm1 = class(TForm) HWindowXCtrl1: THWindowXCtrl; Butto

zw版【转发&#183;台湾nvp系列Delphi例程】HALCON HWindow Overlayer 1

zw版[转发·台湾nvp系列Delphi例程]HALCON HWindow Overlayer 1 ------------------------------------HALCON HWindow Overlayer 1 unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, OleCtrls, HALCONXLib_TLB, St