hum, interesting.
you have Ethernet connection, but not be able to write a file.
anyway
1. flash file.
you can not open file on the flash memory.
because,( I think ) your system does not have FAT access.
2.Network
you say you can send data via Ethernet.
all right why don't you use it.
when your program tries to write jpeg data, your code must have compressed image on you memory(ram) right?
then send whole those data to you computer via Ethernet.
I can't tell why you can not save files on your flash because I don't know how do you construct your system.
I don't know if sending data via Ethernet satisfies your request, but you can make sure your jpeg-program works or not.
how about that?