c# - Error when exporting a zip file: "The entry name must be non-null and non-empty" -



c# - Error when exporting a zip file: "The entry name must be non-null and non-empty" -

ionic.zip.addfile gives error:

"the entry name must non-null , non-empty"

my code:

zip.addfile(filepath, file path);

or

zip.addfile(filepath,"") httpcontext.current.response.clear(); httpcontext.current.response.addheader("content-disposition", "attachment; filename=callrecording" + datetime.now); httpcontext.current.response.contenttype = "application/zip"; zip.save(httpcontext.current.response.outputstream); httpcontext.current.response.end();

both code getting same error.

the "non-null , non empty" error means you're trying add together file has either null value or "" filename.

you might find 1 of values in list either empty or null.

c# asp.net

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -