Android Question java.io.IOException: unknown format (magic number 4449) copying PNG files from DirAssets

PhilMe

Member
Licensed User
Getting java.io.IOException: unknown format (magic number 4449) when attempting to copy PNG files from DirAssets. I do not have a File Manager Library. Is that the problem? Or is there a simpler way to copy non-jpg files?
 

PhilMe

Member
Licensed User
Thank you. I did use File.Copy..... that is the line that caused the error: File.Copy(File.DirAssets, MediaList.Get(i), ToDir, MediaList.Get(i)) It will not copy a png file due to a compression problem. Only jpg files. error = java.io.IOException: unknown format (magic number 4449). Am I missing something?
 
Upvote 0
Top