Good morning all,
ok so i been trying my best to get this to work but for the life of me keeps returning null.
code i have -
public void exactzip(string name)
{
try
{
//ExtractSaveResource("ffmpeg", ffmpegpathset);
if (!Directory.Exists(name + "\\ffmpeg"))
{
byte[] myfile = Resources.ffmpeg;
File.WriteAllBytes("ffmpeg.zip", myfile);
bool flag = File.Exists("ffmpeg.zip");
if (flag)
{
if(ffmpegpathset != string.Empty)
{
using (ZipFile zip = ZipFile.Read(ffmpegpathset + "ffmpeg.zip"))
{
foreach (ZipEntry e in zip)
{
e.Extract(ffmpegpathset, ExtractExistingFileAction.OverwriteSilently);
}
}
}
else
{
using (ZipFile zip = ZipFile.Read(ffmpegpathset + "//ffmpeg.zip"))
{
foreach (ZipEntry e in zip)
{
e.Extract(ffmpegpathset, ExtractExistingFileAction.OverwriteSilently);
}
}
}
}
}
else
{
}
}
and i have checked the resorces file
that has the following,
public static byte[] ffmpeg {
get {
object obj = ResourceManager.GetObject("ffmpeg", resourceCulture);
return ((byte[])(obj));
}
}
but issue i have is it goes though but the file write bytes does not copy the file to the c drive for it to be extracted i have been using this iocic.zip for ages for all my unzipping
but this is not working for what ever reason and i cant seem to understand why this is
Kind regards,
elfenliedtopfan5