Java storeFileDocumentContent (inputstream vs audioinputstream)
When I use custom java to store a wav file (read as an inputstream) into a FileDocument (using Core.storeFileDocumentContent), the file saves just fine in Mendix and when I download it, it plays just fine. If I read a wav file as an AudioInputStream and store it the same way, it appears to save properly as a FileDocument and the size is the same, but when I download it, I get a message that : “This file isn't playable. That might be because the file type is unsupported, the file extension is incorrect, or the file is corrupt.” I find it odd that if I save the wav file directly to my hard drive, it has no problem playing, but saving it to a Mendix FileDocument seems to cause corruption issues. Does anyone know why that might happen?