[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: How to do UploadData using WebClient?

Status
Not open for further replies.
G

goo

Guest
Got it to work.... def var sendData as "System.Byte[]" no-undo. def var responseArray as "System.Byte[]" no-undo. def var UTF8 as System.Text.Encoding no-undo. UTF8 = System.Text.Encoding:UTF8. oUri = new System.Uri(wc:BaseAddress + 'tasks' + '?taskAssignmentId=' + ipAssignmentId + '&newStatus=' + ipNewStatus). sendData = UTF8:GetBytes(ipData). responseArray = wc:UploadData(oUri,'PATCH',sendData). lc = UTF8:GetString(responseArray, 0, responseArray:Length). RETURN lc.

Continue reading...
 
Status
Not open for further replies.
Top