iOS Question httputils.postfile question

Discussion in 'iOS Questions' started by little3399, Jun 25, 2015.

  1. little3399

    little3399 Active Member Licensed User

    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 ...
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    HttpUtils2.PostFile reads the file bytes and sends them. It cannot rotate an image. The problem is somewhere else.
     
  3. little3399

    little3399 Active Member Licensed User

    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
     

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    You need to url encode non-ascii characters.
     
  5. little3399

    little3399 Active Member Licensed User

    But Why the same code which on B4A and B4I have different results ?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    The underlying Android API probably escapes the non-ASCII characters for you.
     
Loading...