Writing stream data to usb

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Writing stream data to usb

1,916 Views
Jairo
Contributor III
Hi, i want to know how to manage files, i understand all about files managing in C on a PC, here is my problem: I got a data stream captured with A GPIO port, that stream is an image, and i want to save it to an USB stick, so it's necesary load all the image in RAM (the image data expected doesn't fit in the RAM) or i can write byte to byte received to the file whitout loading all the data in RAM?
Labels (1)
Tags (1)
0 Kudos
1 Reply

510 Views
EAI
Contributor IV
Yes you can write byte by byte to a file, but for better performance I would recommend writing 512 bytes at a time.