iTP Active Transaction Pages (iTP ATP) Programmer's Guide

ATP Objects, Properties, and Methods
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
4-34
atp.blob Object
atp.blob Object
The blob object is a container for binary data. atp.blob objects are created as
properties of the atp.request object as part of forms-based file upload support
(RFC1867 /multipart/form-data). Use the atp.buffer object setBinary() method
to move atp.blob objects to atp.buffer objects.
Constructor
new atp.blob (string_name,string_filename, string_type, string_data)
string_name
This parameter contains descriptive data. For atp.blob objects created as part of
forms-based file upload, this value is the input field name.
string_filename
This parameter contains descriptive data. For atp.blob objects created as part of
forms-based file upload, this value is the name of the file being uploaded.
string_type
This parameter contains descriptive data. For atp.blob objects created as part of
forms-based file upload, this value is the content type of the uploaded file.
string_data
This parameter contains the blob data. For atp.blob objects created as part of
forms-based file upload, this value consists of the contents of the file being
uploaded. (The largest supported file size is 200,000 bytes.) The content is binary
data.
Properties
The atp.blob object has a property corresponding to each parameter you supply
in the constructor.
atp.buffer Object
You use the buffer object to store application-message data and to communicate with a
Pathway (NonStop TS/MP) server class through the Pathsend facility.
Constructor
new atp.buffer(string_type)
string_type
The string_type indicates the convention used by the application to store
strings in application messages. Its value must be the string "c" (trailing null) or the
string "cobol" (trailing spaces). The default is "c".