473,396 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C# How to view files from a zip file without writing a temp file

14
I have a few videos zipped up and password protected. Currently, I am using ICSharpCode.SharpZipLib.dll to extract the files to a temporary location, then later delete when the program is exited. Some of the videos are rather large, so this process can take some time. Is there a way to view a video without having to extract it to a temporary location first (stream it)?
Feb 4 '08 #1
7 1652
kenobewan
4,871 Expert 4TB
You may be able to modify this example to suit your needs:
Zipping/Compressing ViewState in ASP.NET
Feb 4 '08 #2
TxAg03
14
Thank you. Looked the code over and tried to get it to work, but was not successful.
Feb 4 '08 #3
TxAg03
14
Better yet, is there a way to view files (videos) from an uncompressed zip file without having to extract the file (video)?
Feb 5 '08 #4
Shashi Sadasivan
1,435 Expert 1GB
Start the video viewing application and pass it the file name

where filename is
c:\path_where_zipFile_is_stored\the_zipped_file.zi p\the_video_file.avi

Im not sure if this will help exactly!
Feb 5 '08 #5
TxAg03
14
Thank you Shashi.

I've been trying that with the following code:

System.Diagnostics.Process.Start("wmplayer",@"C:\D ownload\TestZipUC.zip\00.wmv");

When windows media player opens, I get an error saying the file could not be found.
Feb 5 '08 #6
kenobewan
4,871 Expert 4TB
So what is wrong with your reference - C:\Download\TestZipUC.zip\00.wmv?
Feb 6 '08 #7
TxAg03
14
kenobewan, I wish I knew. I zipped up a few videos using WinZip and turned off compression, as well as removed all spaces in file names, but when I try to reference that file as if it were in a regular folder on the HDD, WMP does not like that and gives an error. I looked at the properties of the video once in WMP, after the error message, and found that it did find the video in the zip, just won't play it, that and all information about the video was blank. I've even tested XPs zip by opening it as a folder and running a video. It still has to extract it before playing. Any suggestions?
Feb 6 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Neil | last post by:
I just resolved a strange situation I was having with an ODBC linked SQL 7 view in an Access 2000 MDB file, and I'm trying to get some understanding as to what happened. The linked view was...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
25
by: Ali-R | last post by:
Hi, Is there a parser which parses CSV files? Thanks for your help. Reza
4
by: serge | last post by:
I managed to put together C# code and have it do the following: 1- Get all the table names that start with the letter "Z" from sysobjects of my SQL 2000 database and put these table names...
1
by: Matt Walker | last post by:
I decided to flesh out my php skills by building a web application which could scan through local files on my intranet (specifically mapped drives on my server) and generate a list of Movies or...
5
by: JimmyKoolPantz | last post by:
Situation: I am writing a program that opens up a data file (file ext .dbf), imports the information into a dataset. The program also, searches through the dataset for key words ("company...
2
by: mauricesmith42 | last post by:
Sorry i know this is rather large to be posting, but in order to understand the question you have to see all the code //#include <windows.h> //needed for opening folders #include...
1
by: inboxforsumit | last post by:
Hello friends... I have to submit an asginment on the following topic. Write a program to scan a text file for unique words and store these words alphabetically in a linked list. You have to take...
10
by: Tammy | last post by:
Hello all, I am wondering what is the best way to declare a struct to be used in other c and c++ files. Such as for a C API that will be used by others. 1. Declaring the typedef and the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.