15,891,905 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 11593359 (Top 22 by date)
Member 11593359
21-Sep-15 4:20am
View
thank you for your reply
i am new in c# so is there any example or solution for this
Member 11593359
13-Sep-15 4:29am
View
Thank you for your reply,
MaxSize= 1000000 * 1024; // 100k
In Case It Enter in Else no File Will Be copied,
Thanks
Member 11593359
10-Sep-15 3:39am
View
Yes this Is my problem i can't create zip file from my list using memory stream max size
Member 11593359
9-Sep-15 17:14pm
View
thank you for your reply,
i need to avoid out of memory exception so every time i check if memorystream.length exceeded the limit so i append it to file stream here in my code it replace with old one so, the result zip files doesn't has all file , so how can isolve it or is there any way to do the same thing (using io .compression )
Member 11593359
8-Sep-15 9:55am
View
Thank you for your reply
There is already library Do The require Ionic.Zip
using (ZipFile zip = new ZipFile())
{
zip.AddDirectory(sFolderPath);
zip.Comment = "This zip was created at " + System.DateTime.Now.ToString("G");
zip.MaxOutputSegmentSize = 10000 * 1024; // 100k segments
zip.Save(sbZipFolderName.ToString());
SegmentsCreated = zip.NumberOfSegmentsForMostRecentSave;
}
but i need to remove this library from my project and Use System.IO.Compression
Thanks
Member 11593359
20-May-15 9:59am
View
yes i have
Member 11593359
20-May-15 9:41am
View
<pre lang="cs">
if (File.Exists(sbPhysicalpath.ToString()))
File.Delete(sbPhysicalpath.ToString());
using (ZipArchive zipFile = ZipFile.Open(sbPhysicalpath.ToString(),ZipArchiveMode.Update))
{
foreach (var files in ListfileFolderPaths)
{
flInfo = new FileInfo(files);
if ((flInfo.CreationTime >= from_date) || (flInfo.LastWriteTime >= from_date))
{
zipFile.CreateEntryFromFile(flInfo.FullName, flInfo.Name, CompressionLevel.Fastest);
}
}
}</pre>
Still have the same error
The process cannot access the file 'D\test1\test1.zip' because it is being used by another process.</pre>
Member 11593359
20-May-15 9:33am
View
in zipFile.CreateEntryFromFile in first loop
Member 11593359
20-May-15 9:16am
View
thank you very much but it give me an error
The process cannot access the file 'D\test1\test1.zip' because it is being used by another process.
Member 11593359
20-May-15 7:21am
View
Using Ionic.Zip
using (ZipFile zip = new ZipFile()) {
foreach (var files in ListfileFolderPaths)
{
flInfo = new FileInfo(files);
if ((flInfo.CreationTime >= from_date) || (flInfo.LastWriteTime >= from_date))
{
zip.AddFiles(new[] { flInfo.FullName },"directParentFolderNameOfFIleEX:NewFolder");
zip.Save("ZipFolderPath");
}
}
}
but ineed to remove Ionic.Zip from my project
Member 11593359
20-May-15 7:05am
View
yes it is on the server Side not in client Side
Member 11593359
20-May-15 7:03am
View
yes i have read it but how can i customize it to my Application Purpose
Member 11593359
12-May-15 8:42am
View
After Validate User Name AND Password I set My cookies With User Name And Password With No expired Date So Each time i enter i check if Cookies Is Not Null
Member 11593359
10-May-15 5:32am
View
Thank you for your reply
yes i mean That
Member 11593359
10-May-15 5:25am
View
i want to check if var PropValue (Object) Is Not Empty
Member 11593359
10-May-15 5:25am
View
i want to check if var PropValue (Object) Is Not Empty
Member 11593359
22-Apr-15 10:03am
View
thank you so much it is working now
Member 11593359
22-Apr-15 9:34am
View
itried to use
but it give me an error Cannot implicitly convert type 'object' to 'Person'. An explicit conversion exists (are you missing a cast?)
<pre lang="c#">[HttpPost]
public HttpResponseMessage Post(List<dictionary<string, string=""> _ListDataDict)
{
if (_ListDataDict != null)
{
foreach (var kvp in _ListDataDict)
{
Person p =JsonConvert.DeserializeObject(kvp.ToString());
}
return ControllerContext.Request.CreateResponse(HttpStatusCode.OK, "The Messages Has Been Successfully Sent Via Sending data Dictionary");
}
else
return ControllerContext.Request.CreateResponse(HttpStatusCode.InternalServerError, "SMS Object = NULL Value");
}</pre>
any idea why
Member 11593359
22-Apr-15 9:20am
View
itried to use
but it give me an error Cannot implicitly convert type 'object' to 'Person'. An explicit conversion exists (are you missing a cast?)
<pre lang="c#">[HttpPost]
public HttpResponseMessage Post(List<Dictionary<string, string> _ListDataDict)
{
if (_ListDataDict != null)
{
foreach (var kvp in _ListDataDict)
{
Person p =JsonConvert.DeserializeObject(kvp.ToString());
}
return ControllerContext.Request.CreateResponse(HttpStatusCode.OK, "The Messages Has Been Successfully Sent Via Sending data Dictionary");
}
else
return ControllerContext.Request.CreateResponse(HttpStatusCode.InternalServerError, "SMS Object = NULL Value");
}</pre>
any idea why
Member 11593359
22-Apr-15 4:47am
View
thank you it is working now
Member 11593359
18-Apr-15 7:11am
View
thank you so much for your reply
there is no problem in my post method i have aproblem in delete method because delete method doesn't accept object parameter only URI
Result = client.DeleteAsync(URI)
Member 11593359
16-Apr-15 8:51am
View
thank you
Show More