15,919,434 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 7790032 (Top 24 by date)
Member 7790032
3-Oct-11 16:15pm
View
I am not sure what you are asking. ??
Member 7790032
2-Aug-11 11:13am
View
Is there a way to save it to the file stream and directly flush the created zip to the browser without saving a hard copy and if this method would be efficient and not bring down my server...
Member 7790032
2-Aug-11 11:10am
View
Thanks for the input I am using that library to extract the original file and using it to zip them again but I had another concern about loose files that haven't been deleted due to some unforeseen issue.
Member 7790032
2-Aug-11 11:08am
View
Thanks for the response. I have a function that returns the zipped file using that library ,below is my function call
<pre> Public Function ZipFiles(ByVal inputFolderPath As String, ByVal outputPathAndFile As String) As String
Dim outPath As String = Nothing
Try
Dim ar As ArrayList = GenerateFileList_Zipping(inputFolderPath)
' generate file list
Dim TrimLength As Integer = (Directory.GetParent(inputFolderPath)).ToString().Length
' find number of chars to remove // from orginal file path
TrimLength += 1
'remove '\'
Dim ostream As FileStream
Dim obuffer As Byte()
outPath = inputFolderPath & "\" & outputPathAndFile
Dim oZipStream As New ZipOutputStream(File.Create(outPath))
' create zip stream
oZipStream.SetLevel(9)
' maximum compression
Dim oZipEntry As ZipEntry
For Each Fil As String In ar
' for each file, generate a zipentry
oZipEntry = New ZipEntry(Fil.Remove(0, TrimLength))
oZipStream.PutNextEntry(oZipEntry)
If Not Fil.EndsWith("/") Then
' if a file ends with '/' its a directory
ostream = File.OpenRead(Fil)
obuffer = New Byte(ostream.Length - 1) {}
ostream.Read(obuffer, 0, obuffer.Length)
oZipStream.Write(obuffer, 0, obuffer.Length)
End If
Next
oZipStream.Finish()
oZipStream.Close()
Catch ex As Exception
Finally
If (File.Exists(outputPathAndFile)) Then
File.Delete(outputPathAndFile)
End If
End Try
Return outPath
End Function </pre>
but I have to store the file on the server to be downloaded. I don't want a situation of having a bunch of temporary files on the server that wasn't deleted due to some issue
Member 7790032
12-Jul-11 10:39am
View
This was a good solution now I have other issues ate the results are not binding to the grid don't know if it's because I I am using linq to sql with SP but that's a different issue. Thanks.
Member 7790032
11-Jul-11 20:38pm
View
It running on a remote server so that is my issue. Is there any known way to over come this obstacle
Member 7790032
11-Jul-11 20:24pm
View
ok. Let me clear up my web reference terminology. I created all my web service in a separate project and published them to the host. To use them I had to add a web reference to the particular project I wanted to use the web services in because the are used across multiple domains. I now want to do some async operations on the client because my DS is getting heavier and page is getting slower but I wanted to know if having the web service local to the application being used is the only way to invoke them on the client.
Member 7790032
11-Jul-11 20:14pm
View
So i won't be able to use the url of the published web service http://myhost.com/services/postings/pservice.asmx to access the web service and the service has to be local to the file structure to be able to access the method from the client
Member 7790032
5-Jun-11 22:42pm
View
No i haven't done anything to make it async because what i have done didn't work so far so i have given you what I have and where I need or would want to take it
Member 7790032
5-Jun-11 22:32pm
View
I am new to this topic but I noticed that my loading time and calls are running a little slower now i have a lot more records to retrieve and format. Could you point me in a direction or an example to help me make this change.
Member 7790032
31-May-11 11:21am
View
Sorry about that, now that I have do you have any ideas
Member 7790032
31-May-11 11:12am
View
I know how to create a handler but I was wondering how to intercept the file requests to determine if the files should be downloaded by the requesting agent.
Member 7790032
24-May-11 16:49pm
View
How would i go about that? I have seen websites where I tried to use real player but when the real down loader tried to open the file it gave a message of 'site does not allow download'.
Member 7790032
24-May-11 14:54pm
View
I tried your link but it is broken and my search of the net I ran into people with the same issue with no solution as yet
Member 7790032
24-May-11 13:08pm
View
This is not a good solution since the problem is not authentication.
I should clarify that all visitors are able to listen to the content but cannot download unless they have membership with the site. So if a users visited and had an app like real player installed they could download the files without being a member.
Member 7790032
14-Apr-11 14:58pm
View
Your saying give them a direct link to the file. There is some house keeping that needs to be done. like the is a different download rate for various level of user membership. We need to know how many times a file is downloaded . SO I don't know if I can do the first one by giving the user a direct link or an absolute URL like <pre>http://www.myurl.com/downloads/file/file.zip</pre>
Member 7790032
14-Apr-11 14:57pm
View
Deleted
Your saying give them a direct link to the file. There is some house keeping that needs to be done. like the is a different download rate for various level of user membership. We need to know how many times a file is downloaded . SO I don't know if I can do the first one by giving the user a direct link or an absolute URL like http://www.myurl.com/downloads/file/file.zip
Member 7790032
7-Apr-11 17:47pm
View
I guess if i can find it then crawler can find the link
Member 7790032
7-Apr-11 17:40pm
View
I guess there is no definite way to assure the link is visible. Thanks for the prompt response
Member 7790032
6-Apr-11 12:11pm
View
Thanks
Member 7790032
6-Apr-11 12:02pm
View
Is there a know way to read this with asp.net or does it have to be a 3rd party library
Member 7790032
6-Apr-11 11:53am
View
Thanks for the advise
Member 7790032
6-Apr-11 11:36am
View
I would also want to know about the copy right information. If the track is named differently or miss spelled this would be hard to catch or match and thanks for the prompt response
Member 7790032
6-Apr-11 9:55am
View
I want a user to input an file ie mp3 , mp4 etc
Show More