As the question states I'm trying to append a file to the end of a WAV file as a form of steganography(I know it's not the most secretive but it's for practice). Here is the code I have
File soundFile = new File("test.wav");
AudioInputStream input = AudioSystem.getAudioInputStream(soundFile);
InputStream inputOther = new BufferedInputStream(new FileInputStream("test.jpg"));
AudioInputStream appendTime = new AudioInputStream(new SequenceInputStream(inputOther, input, input.getFormat(), input.getFrameLength()));
But the AudioInputStream "appendTime" doesn't work. Is there another way to append a file to a WAV file or can I fix this one?