|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
Windows本身的所有问题都会一成不变的也累加到了它的身上。安全性、稳定性、跨平台性都会因为与NT的捆绑而显现出来;FunctionOpenJPGFile(FileName)
DimAscii,lastHex,currentHex,SOSFound
DimFSO,File,i
IfNotFileName=""Then
IfInStr(1,FileName,":")=0Then
FileName=Server.MapPath(FileName)
EndIf
SetFSO=Server.CreateObject("Scripting.FileSystemObject")
IfFSO.FileExists(FileName)Then
SetFile=FSO.OpenTextFile(FileName,ForReading,False,TristateFalse)
i=0
WhileNotFile.AtEndOfStreamandSOSFound=false
Ascii=Asc(File.Read(1))
lastHex=currentHex
currentHex=Right("0"&Hex(Ascii),2)
iflastHex¤tHex="FFDA"ori>100000then
SOSFound=true
endif
ExifTemp(i)=currentHex
i=i+1
ReDimPreserveExifTemp(i)
Wend
File.Close
SetFile=Nothing
Else
Response.Write("Filedoesnotexist")
EndIf
SetFSO=Nothing
EndIf
endfunction
SubGetDirectoryEntries(Offset)
DimNo_of_Entries
DimUpper_IFDDirectory
DimNewDimensions
DimProcessed_ExifSubIFD
DimBytesPerComponent
DimOffset_to_MakerNote
Dimi,j,k
Do
IfIsIntelThen
No_of_Entries=_
HexToDec(ExifTemp(Offset+1))*256+_
HexToDec(ExifTemp(Offset+0))
Else
No_of_Entries=_
HexToDec(ExifTemp(Offset+0))*256+_
HexToDec(ExifTemp(Offset+1))
EndIf
OnErrorResumeNext
Upper_IFDDirectory=UBound(IFDDirectory)
OnErrorGoTo0
NewDimensions=Upper_IFDDirectory+No_of_Entries
ReDimPreserveIFDDirectory(NewDimensions)
Fori=1ToNo_of_Entries
k=Upper_IFDDirectory+i-1
IFDDirectory(k)=array(null,null,null,null,null,null,null)
WithIFDDirectory(Upper_IFDDirectory+i)
IfIsIntelThen
IFDDirectory(k)(IFD_IDX_Tag_No)=_
ExifTemp((Offset+2)+((i-1)*12)+1)&_
ExifTemp((Offset+2)+((i-1)*12)+0)
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+1))*256+_
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+0))
IFDDirectory(k)(IFD_IDX_Data_Format)=_
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+3))*256+_
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+2))
IFDDirectory(k)(IFD_IDX_Components)=_
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+7))*256*256*256+_
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+6))*256*256+_
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+5))*256+_
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+4))
SelectCaseIFDDirectory(k)(IFD_IDX_Data_Format)
Casem_BYTE,m_SBYTE
BytesPerComponent=1
IfIFDDirectory(k)(IFD_IDX_Components)*BytesPerComponent<=4Then
IFDDirectory(k)(IFD_IDX_Value)=_
ExifTemp((Offset+2)+((i-1)*12)+11)&_
ExifTemp((Offset+2)+((i-1)*12)+10)&_
ExifTemp((Offset+2)+((i-1)*12)+9)&_
ExifTemp((Offset+2)+((i-1)*12)+8)
Else
IFDDirectory(k)(IFD_IDX_OffsetToValue)=_
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+11))*256*256*256+_
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+10))*256*256+_
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+9))*256+_
HexToDec(ExifTemp((Offset+2)+((i-1)*12)+8))
Fo</p>asp,jsp,php是web开发的三大技术,asp简单易用且有microsoft做靠山,jsp功能强大是因为有java支持,php则开源跨平台.在国内,asp应用范围最广,jsp发展势头最猛,php则处于劣势.这可能与公司的支持以及技术的培训有关. |
|