Professional Documents
Culture Documents
nFile = FreeFile
Open strFilename For Binary As #nFile
strText = String(LOF(nFile), " ")
Get #nFile, , strText
Close #nFile
strResponse = oHttp.responseText
UpLoadData = strResponse
GoTo LastSub
On Error GoTo 0
Exit Function
ErrorHandler:
MsgBox "Error : (" & Err.number & ") " & Err.Description, vbExclamation,
App.Title
UpLoadData = "ERROR UPLOAD"
GoTo LastSub
Exit Function
LastSub:
On Error Resume Next
Set oHttp = Nothing
On Error GoTo 0
End Function