I would recommend you use NetSuite's serverWidget ...
# suitescript
b
I would recommend you use NetSuite's serverWidget to generate a form with a file field. Do not try to post binary form data to suitelets, there is only suffering since you will only have Strings to work with.