+1 I didn’t know this.
Jérémy Le 3 mars 2017 à 04:54, Stavros Panidis <stavros.pani...@gmail.com<mailto:stavros.pani...@gmail.com>> a écrit : Dear Mark, Many thanks. This solved my problem. Stavros On 1 Mar 2017, at 20:36, Louis M Fisher III <mar...@me.com<mailto:mar...@me.com>> wrote: Stavros, You said: Regarding fileUpload form I use <wo:fileUpload data = "$fileData" filePath = "$imagepath" mimeType = "$mimeType" /> Using fileUpload in this way is problematic because it uses a NSData object on the server to store the file - the entire file needs to be stored in memory before it can be written to disk. It is common to run into out of memory errors in the scenario. Take a look at the documentation for fileUpload here: https://wiki.wocommunity.org/display/documentation/WOFileUpload A better method is to use "streamToFilePath" which will stream your file to the server using a 512KB buffer and not store it all in memory. WOFileUpload { filePath=aPath; data=fileData; [inputStream=fileName]; [bufferSize=sizeKB]; [outputStream=fileName]; [streamToFilePath=filePath]; [overwrite=[boolean]]; [finalFilePath=filePath]; } Mark Fisher Chief Technology Officer LoTi Inc. mar...@mac.com<mailto:mar...@mac.com> _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com<mailto:Webobjects-dev@lists.apple.com>) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net This email sent to jeremy.dero...@ingencys.net
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com