can somebody give me a hint how this works with larger data:
using (MemoryStream ms = new MemoryStream()) { ser.Serialize(ms, files); filesBytes = ms.ToArray(); } files is an array of a custom type which includes information about files
ser is a binary formatter
These objects should be serialized
public class FileEntry { public string FileName { get; set; } public string RelativePath { get; set; } public byte[] Content { get; set; } }
filesBytes