Im implementing a web cache, and i've a buffer which has the data of a specific file, when i want to write it into a file. It works for text/plain data, but when i use images it doesnt work. For example, im doing something like this:
fp = fopen("mypicture.jpg","wb");
is there anykind of processing i must do everytime i use image files?