Using filereader and writer to copy jpg files
Go to solution
Solved by espurritado,
if you want to do something with the image, you might want to actually open it as an image instead of as text.
Talking from experience, you are more than likely to have a corrupt image as a result since most image formats have redundancies and checks to make sure it's ok.
If you are still set on reading as a text file, there's a way to read the file as a stream of bytes, so you wont have the problem you are currently having (which is the charset)
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now