ValueAsArray Property


Returns the uploaded file's content as array of bytes.


Value Type: Array
Parameters: None 
Remarks:

This property is read-only


Usage example:

' This sample writes the content of the last uploaded file

<% Set Uploader = Server.CreateObject("MailBee.Uploader")
Uploader.ParseRequest Request.BinaryRead(Request.TotalBytes)
If (Uploader.FormFiles.Count <> 0) Then
   Set File = Uploader.FormFiles(Uploader.FormFiles.Count)
   Response.BinaryWrite File.ValueAsArray
End If %>

See Also:

Size Property | Value Property | FormElements Collection | FormFiles Collection | FormElement Object | FormFile Object | Uploader Object


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.