Writing stream data to usb

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

Writing stream data to usb

2,166 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
Reply
1 Reply

760 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.