to a file ?
im doing this and it just saves corrupt file with wrong size
file.write(&v[curser..(curser+(file_size as usize))]).await?;
perhaps what you're facing is that write does not guarantee that all data was written, try write_all
Обсуждают сегодня