iOS Question Upload Base64 to Server

BensonHung

Member
Licensed User
Longtime User
HI~Everyone!
I have a picture, and I want to transform it to base64, but it shows error 414 when i upload it, how could I solve this problem?
thank you!
 

BensonHung

Member
Licensed User
Longtime User
in B4i
B4X:
j.Initialize("UploadSigin", Me)
j.PostString("http://192.168.1.180:8081/WebService/ExamUserUploadSigin.aspx",jsonstring)

in .net Server
B4X:
  string vTitle = "";
  string vDesc = "";
  string FilePath = Server.MapPath("/file/1.txt");      

  if (!string.IsNullOrEmpty(Request.Form["title"]))
  {
    vTitle = Request.Form["title"];
  }
  if (!string.IsNullOrEmpty(Request.Form["description"]))
  {
    vDesc = Request.Form["description"];
  }
  
  HttpFileCollection MyFileCollection = Request.Files;
  if (MyFileCollection.Count > 0)
  {
    // Save the File
    MyFileCollection[0].SaveAs(FilePath);
  }
 
Last edited:
Upvote 0
Top