I do not have access to AX2012 right now, so could not try your code.
But can't you close the fileStream in someway?
Try one of these perhaps?
fileStream.close();
fileStream.finalize();
fileStream = null;
I do not have access to AX2012 right now, so could not try your code.
But can't you close the fileStream in someway?
Try one of these perhaps?
fileStream.close();
fileStream.finalize();
fileStream = null;