little3399 Active Member Licensed User Longtime User Jun 25, 2015 #1 Hi, I found a little promble about upload file using httputils postfile method , in B4I ,the upload picture was turned 90 degrees , but in B4A the picture was normal ...
Hi, I found a little promble about upload file using httputils postfile method , in B4I ,the upload picture was turned 90 degrees , but in B4A the picture was normal ...
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2015 #2 HttpUtils2.PostFile reads the file bytes and sends them. It cannot rotate an image. The problem is somewhere else. Upvote 0
HttpUtils2.PostFile reads the file bytes and sends them. It cannot rotate an image. The problem is somewhere else.
little3399 Active Member Licensed User Longtime User Jun 27, 2015 #3 Hi, maybe I found another bug about httputils.postfile .... if the upload file filename contains Chinese characters it would be shown error and can not execute the command ... But if was in B4A all code will be work very well... Error: The operation couldn’t be completed. (NSURLErrorDomain error -1002.) here was the uploaddemo program Attachments B4iTest.zip B4iTest.zip 10.2 KB · Views: 368 Upvote 0
Hi, maybe I found another bug about httputils.postfile .... if the upload file filename contains Chinese characters it would be shown error and can not execute the command ... But if was in B4A all code will be work very well... Error: The operation couldn’t be completed. (NSURLErrorDomain error -1002.) here was the uploaddemo program
Erel B4X founder Staff member Licensed User Longtime User Jun 28, 2015 #4 You need to url encode non-ascii characters. Upvote 0
little3399 Active Member Licensed User Longtime User Jun 28, 2015 #5 But Why the same code which on B4A and B4I have different results ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 29, 2015 #6 The underlying Android API probably escapes the non-ASCII characters for you. Upvote 0