How add png image to zip file using std.zip?

Marcone marcone at email.com
Sun Feb 21 17:17:56 UTC 2021


	ZipArchive zip = new ZipArchive();
	std.file.write("foo.zip", zip.build());

	ArchiveMember f = new ArchiveMember();
	f.name = "Wallpaper_001.png";
	
	zip.addMember(f);
	std.file.write("foo.zip", zip.build());

File is added with file size 0.
How can I use expandedData for add images files? Or what I use 
for it?


More information about the Digitalmars-d-learn mailing list