Consultor Eletrônico



Kbase P145117: How to send a BLOB from AJAX to WebSpeed?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   22/04/2009
Status: Unverified

GOAL:

How to send a BLOB from AJAX to WebSpeed?

GOAL:

How to handle large amount of data passed from an AJAX framework and process it with WebSpeed

FACT(s) (Environment):

OpenEdge 10.x
All Supported Operating Systems

FIX:

There are various implementation of AJAX technology within different frameworks
and therefore client side of creating the post request may largely vary.
However, any framework based on AJAX has its means to make a post request that will contain
some content in one or more of the form elements that would be somehow encrypted (e.g. base-64)
and transmitted in such form to the server side.
In case where such an post request contains large amount of information (as BLOB usually does),
then due to the 32K limit of the WebSpeed's 'get-field' api function you need to use 'get-long-value'
function which returns LONGCHAR data type which can be further dissected, its content extracted
and further used within the application.