what is wrong with this code it gives error

后端 未结 1 488
忘掉有多难
忘掉有多难 2021-01-17 06:00

can anyone tell me that what is wrong with this code it returns the error of syntax error. can anyone fix it ?

dos.writeBytes(twoHyphens + boundary + lineEn         


        
1条回答
  •  误落风尘
    2021-01-17 06:32

     dos.writeBytes("Content-Disposition: form-data; name=\"uploaded_file\";\"filename=\""+ fileName + "\"" + lineEnd);
    

    double qoutes are not used within double qoutes, you need to put "\" (backslash)

    0 讨论(0)
提交回复
热议问题