java - Retrieving data from the hashMap in a multipartFormData -


i'm having trouble method, can print map if there's 1 item in if put more 1, out of bounds exception, have implemented incorrectly?

public static result update(){          //get body of request         requestbody body = request().body();         //assign type multipartformdata         http.multipartformdata multippartbody = body.asmultipartformdata();         // pull video multipartformdata         http.multipartformdata.filepart videofile = multippartbody.getfile("filekey");         // pull hashmap multipartformdata         map<string, string[]> mymap  = multippartbody.asformurlencoded();          system.out.println(mymap.size());         // loop print contents of hashmap         for(int =0; < mymap.size(); i++){             string param = "param" + (i + 1);             system.out.println(mymap.get(param)[i]);             }          } 


Popular posts from this blog

html/hta mutiple file in audio player -

debugging - Reference - What does this error mean in PHP? -