Hi All!
I am able to upload image files to my server with PostMultipart with something like:
But if i have a Bitmap, let's say that it is the result of a crop of an original image, is it possible to upload that cropped bitmap as a JPEG without saving it first to a temporary file?
Thanks in advance for any suggestion!
I am able to upload image files to my server with PostMultipart with something like:
B4X:
Dim Upload As HttpJob
Upload.Initialize("Upload",Me)
Dim fd As MultipartFileData
fd.Initialize
fd.KeyName = "pic"
fd.Dir = file.DirDefaultExternal
fd.FileName = "Temp_pic.jpg"
fd.ContentType = "image/jpeg"
Upload.PostMultipart(url & "/UploadPic.php", CreateMap("Info": InfoFile), Array(fd))
But if i have a Bitmap, let's say that it is the result of a crop of an original image, is it possible to upload that cropped bitmap as a JPEG without saving it first to a temporary file?
Thanks in advance for any suggestion!