Forum Discussion
Altera_Forum
Honored Contributor
10 years agoRead/Write image file in Nios II
Hi Everyone, I want to load an image file (.bmp) using the Nios II but I can not! I used the fopen command and managed to load the image, but when I try to write in another file ...
Altera_Forum
Honored Contributor
10 years agoHello,
It is not easy to solve your issue, i do not have a lot of info. There are different flags that you can use with the fopen command in C. One of them determines if you read the file binairy or in a sort of interpreted text mode. Are you reading the files in binairy mode ? (fopen with flags "rb+" and "wb+"), if not, interpretation CR/LF can cause deformation of data. Best Regards, Johi.