Temp Files in Servoy

I’m reading in a series of images from the client to the server. This works fine, but when I move the files to the server I need them to be a different size. So I am writing the newly sized image file back to the client, then moving to the server using the datastream plugin. Because I don’t know the size of the files or the number of files, I can’t really delete them immediately after passing to datastream. Is there a way to make those files temp files so they’ll be deleted a later time?

Can’t you use the callback method. The method should not fire before really finishing the streaming (if this does not work please create a ticket in our support system at http://www.it2be.com/index.php/support)

I probably can, but I’m not familiar with how to do that. Is that a specific method call or is that part of the writeServerFileBinary method?

Thanks for your help!