travis Haycock wrote: What I am trying to do is encrypt a file that is being uploaded to a server...
Well, first of all most of that code has nothing to do with encryption. It all seems to be some kind of machinery for messing with files. It looks like you are trying to read a file from your system, encrypt it, and upload the result to Dropbox.
A good tool to do this would be something which can read data from an InputStream, encrypt the data, and write the encrypted data to an OutputStream. Then you would pass that tool an InputStream pointing to a file on your system and an OutputStream pointing to something on Dropbox. You'd also need the inverse of that, something which can read from an InputStream, decrypt the data, and write it to an OutputStream.
But you seem to be trying to use something which uploads from a file to Dropbox. Do you really have to use that? Because it's forcing you to write your encrypted data back to a file on your local machine before uploading it, which is a waste of resources. Is there something in your Dropbox client which gives you an OutputStream pointing to a Dropbox target?