Home

It is often required to upload and manage files on the server. For example you can resize an image file, search for files, create excel documents on the fly, etc.

Fso, manipulate files in asp

To manipulate image files from asp, use these:
 
    ShotGraph 
 
    ASPImage 
 
Components for creating charts and/or graphs from ASP: 
 
    ASPGFX 
 
    ChartDirector 
 
    Chart FX 
 
    DundasChart 
 
    IntrChart 
 
    PopChart Image Server 
 
Free component will tell you the properties of a local image file: 
 
    ImageSize 

Asp does not have any built in functionality to manage, resize or generate image, excel or such files. However you can get file properties using the FSO asp component.

 
<%
thisFile = Request.ServerVariables("SCRIPT_NAME")
Set fso = CreateObject("Scripting.FileSystemObject")
Set file = fso.GetFile(Server.MapPath(thisFile))
Response.Write "Size of file: " & file.size & " bytes, " & _
formatnumber(file.size/1024, 2) & " KB"
Set file = nothing
Set fso = nothing
%>
 

Here is a full listing of the GetDetailsOf elements
 

    # Windows XP
    Windows Server 2003
    Windows 2000
    0 Name Name
    1 Size Size
    2 Type Type
    3 Date Modified Date Modified
    4 Date Created Attributes
    5 Date Accessed Comment
    6 Attributes Date Created
    7 Status Date Accessed
    8 Owner Owner
    9 Author ???
    10 Title Author
    11 Subject Title
    12 Category Subject
    13 Pages Category
    14 Comments Pages
    15 Copyright Copyright
    16 Artist Company Name
    17 Album Title Module Desription
    18 Year Module Version
    19 Track Number Product Name
    20 Genre Product Version
    21 Duration Sender Name
    22 Bit Rate Recipient Name
    23 Protected Recipient Number
    24 Camera Model Csid
    25 Date Picture Taken Tsid
    26 Dimensions Transmission Time
    27 ??? Caller Id
    28 ??? Routing
    29 ??? Audio Format
    30 Company Sample Rate
    31 Description Audio Sample Size
    32 File Version Channels
    33 Product Name Play Length
    34 Product Version Frame Count
    35 ??? Frame Rate
    36 ??? Video Sample Size
    37 ??? Video Compression

 

[Download Sample Code]