Sub cc_Result (Success As Boolean, Dir As String, FileName As String )
If Success Then
ProgressDialogShow2("Enviando foto, aguarde...", False)
'Dim bmp As Bitmap
'Dim testee As String
' bmp.Initialize(Dir, FileName)
File.Copy(Dir, FileName,FP, "1.jpg")
Dir = FP
'Activity.SetBackgroundImage(bmp)
'Dim imagemenviar As Bitmap
'imagemenviar.Initialize(Dir, FileNames)
enviaimagem.Initialize("enviaimagem")
'Msgbox(testee,"teste")
Dim files As List
files.Initialize
Dim fd As FileData
fd.Initialize
fd.Directory = FP
fd.FileName = "1.jpg"
fd.KeyName = "RWQ0kbmG"
fd.ContentType = "application/octet-stream"
files.Add(fd)
Dim NV As Map
NV.Initialize
NV.Put("UserID", userid)
NV.Put("action", "upload")
Dim reqs As HttpRequest
reqs = poste.CreatePostRequest("http://74.63.153.75/recebeimagem.php", NV, files)
enviaimagem.Execute(reqs, 2)
Else
ToastMessageShow("Imagem não selecionada", True)
End If
End Sub