Thanks for putting this library together. For a project I'm working on I put everything through an encryption cipher before writing anything to disk, so only having writeExif functions that write to a file makes things a little more difficult. Could you expose a function in ExifInterface that writes to a stream rather than an output file?
For my project I've just included your source entirely and added this function, which seems to work for my needs:
public void writeExif(final InputStream input, final OutputStream output) throws IOException
{
writeExif_internal(input, output, mData);
IOUtils.copy(input, output);
output.flush();
output.close();
}
Thanks!
(I would have done a pull request but I'm not really familiar with how to do them properly, so for such a small snippet have just included here!)
Hello,
Thanks for putting this library together. For a project I'm working on I put everything through an encryption cipher before writing anything to disk, so only having writeExif functions that write to a file makes things a little more difficult. Could you expose a function in ExifInterface that writes to a stream rather than an output file?
For my project I've just included your source entirely and added this function, which seems to work for my needs:
Thanks!
(I would have done a pull request but I'm not really familiar with how to do them properly, so for such a small snippet have just included here!)