File Compression Using DotNetZip?

Oct 17, 2011

I'm currently working on a utility software, file compression, with VB.Net. And using an open source library to compress and decompress files - DotNetZip - and already running.

My friend told to make it unique and not traditional, that I make the output compressed files cannot be opened with other compression software. Now my question is... is it possible that way? Using an open source library which the output format is ".zip"?

I first thought that changing the file extension of the compressed file to unknown format so it can't be opened when you try to decompress it, unfortunately, using the "Open With..." function of windows it could still be decompressed.

Is it really possible? OR what other features can I add that WinZIP doesnt have yet? I compared my work to WinZip since the same output is ".zip".

View 1 Replies


ADVERTISEMENT

VS 2010 File Compression In .net?

Feb 9, 2012

I'm wanting to make a program to rip dvd's but more importantly to store them so the user can watch them when they want. To keep the cpu's memory down I figured I can compress the dvds when the person just has them sitting there and then decompress them when the user wants to play them. I've kinda looked into gzipstream, but would that really work? Should I take a different route?

View 6 Replies

Determining A File Size After RAR Compression?

Oct 16, 2010

I'm willing to create a program that will determine the size of a file imported in OpenFileDialog After a RAR Compression. I'm not sure what's the ratio of the rar compression,

View 1 Replies

Add Multiple Files To One File Without Compression?

Jan 25, 2011

How can I make a program that stores multiple files in one big file (for transporting). There is no need for compression(takes too long).

also, would it be able to open them in this same program (like a windows explorer folder)?

View 7 Replies

VS 2010 DotNetZip, Removing A Directory?

Aug 9, 2011

[URL] There's a RemoveEntry() function to remove a file, but I can't seem to find a function to remove a directory... Does DotNetZip support directory removal? If not, what are some other libraries I could try?

View 1 Replies

C# - Create Zip Files In Classic ASP Using DotNetZip Or SharpZipLib?

Aug 20, 2010

In ASP.Net two of the possible ways to make the zip files are

Sharp Zip Library

Dot Net Zip Library

How can i use any of these in Classic ASP to make the zip files ? And which one will be better ?

View 3 Replies

VS 2010 Extract Progress DotNetZip Library?

Jun 4, 2012

I am trying to track the progress of a file that is being extract with a progress bar. but i have no idea on what i should set as the max of the progress bar and the value..

here is my

Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
Dim ZipToUnpack As String = "C: est.zip"

[Code]....

View 11 Replies

C# - Compression And Decompression In 7z Format?

Jun 28, 2011

How do I create 7-Zip archives with .NET?

I'm looking for ways to do compression and decompression in 7z format via code in VB.NET and C#. Is there any library or .Net code for this purpose?

I know there are GZipStream and DeflateStream in .Net but I want 7z format for better compression ratio.

View 3 Replies

Video Compression In VB 2005?

Feb 9, 2010

i wanted to ask is there any means i can compress a video file(.avi) to a small size than original.Which API should i use(except the DirectX)..?Is DirectX advisable?

View 1 Replies

VS 2005 - Zip Compression Not Working

Aug 14, 2009

I'm trying to compress a file in .NET, but having some trouble. The zip file is created, but it's only 1KB and no files are within the zip file. Basically, it's not working for some reason and I'm not sure why.

Public Sub CompressFile(ByVal fileName As String)
Dim strOutput As Stream = File.Create("zippedFile.zip")
Try
Using (strOutput)
Dim strInput As Stream = File.OpenRead(fileName)
Using (strInput)
[Code] .....

View 2 Replies

VS 2008 Zlib Compression?

Mar 12, 2011

I would like help to compress a file with zlib. I have have searched google for ages and found losts of examples but i can't get any to work in VB 2008 Express. I am also not sure which version of the dll to use as there seems to be a few for VB.Can someone post some code that will work in VB 2008 so i can see how to do it and also a link to the dll that you used.

View 5 Replies

What Voice Compression Algorithm To Use

Jan 21, 2010

which algorithm used for voice compression mailing and decompression

View 2 Replies

Asp.net - Disable GZIP Compression For IE6 Clients?

May 5, 2009

We need to conditionally disable GZIP compression if user's browser is IE6 (it hangs browser for 5min) in few pages of larger site. Server is IIS7 and has compression for static content turned on - want that compression left working if user agent is not Mozilla/4.0. ASPX code sample anyone? Alternatively, code to conditionally redirect to the same page on another site (could create another virtual site with compression disabled) but need to pass all parameters (GET/POST).

View 1 Replies

Check Disk Compression Property?

Aug 29, 2011

I want to check Disk compressed(compress drive to save disk space) property. I have following code to check it. But it always return false. whether it is compress or not.

Dim drive As String = "C"
Dim parameter As String = "win32_logicaldisk.deviceid=""" + drive + ":"""
Dim diskSize As New ManagementObject(parameter)

[Code]....

View 21 Replies

How To Do Loss Less Compression In Windows Application

Jan 25, 2011

Private Function Compress(ByVal strInput As String) As Byte()
Try
Dim bytData() As Byte = System.Text.Encoding.UTF8.GetBytes(strInput)

[Code]....

View 1 Replies

Compression - Make A Program That Can Compress Files

Feb 13, 2008

How do i make a program that can compress files, just like programs like winrar do? Every time i try via something as simple as text editor changing something, then changing it back, then it wont work anymore. Any suggestions on how i can make one of these kinds of compression programs?

View 9 Replies

WCF Window - Entity Framework Data Compression

Feb 3, 2012

I have a WCF Windows service that provides data to 250+ PDAs via compressed datasets and was looking to redevelop both the service and the mobile application to use Entity Framework 4.x models. In order to keep performance acceptable when sending/receiving data on the PDA I need to keep the data size as small as possible and was wondering if its possible to compress a IEnumerable from the WCF windows service? From previous experience with the datasets I got a 80%+/- compression rate and even decompressing the data on the PDA achieved an overal 50% performance importment so retaining similar levels of performance is critical. Could I use a binary serializer and then compress the stream?

View 1 Replies

Store A Stream In Compression Level 4 Jpeg Format?

Jan 10, 2012

some link or could that could explain the way it could be done.

View 1 Replies

Unzip A Zipped Folder Using Microsoft APIs Or Namespaces Perhaps System.IO.Compression?

Sep 19, 2009

can we unzip a zipped folder using microsoft APIs or namespaces perhaps System.IO.Compression. However, it seems to be cumbersome to use them. With a thrid party dll file it works perfectly fine, however i dont want to use it as we dont know what is actually happening inside. Can we have a piece of code which unzips a zipped folder.

View 3 Replies

VS 2008 - .txt File - Write The File Path So That Someone Else Can Download My Program And File And Read The File

Feb 27, 2012

Reading a .txt file in VB.net. My file path is C:UsersMyLilMulePepeDocumentsVisual Studio 2008Projectscurtain_calls.txt.

This is my line of Dim LoanOptionsFile As String = "C:UsersMyLilMulePepeDocumentsVisual Studio 2008Projectscurtain_calls.txt"

I can read the file when I run the program, but how do I write the file path so that someone else can download my program and file and read the file on their system?

View 3 Replies

Create Package And Deployment (setup File Or Install File) File In VB 2010 Project?

Jan 8, 2011

I do one project in visual basic 2010.In visual basic 6 project can be make Package and deployment (setup file or install file) file using Package and deployment wizard.But in visual basic 2010 express edition does not have Package and deployment wizard.how to make Package and deployment (setup file or install file) file in visual basic 2010 project?

View 4 Replies

Read Binary File And In This File Found The String And Replace It With Other One And Save The File Afterwords?

Jan 11, 2011

i need to read binary file and in this file found the string and replace it with other one and save the file afterwords. I found many example to read binary, but to find and replace is for me mistery.

View 3 Replies

C# - Upload File Via FTP - Server Returned Error (550) File Is Unavailable, Cannot Find File?

Oct 31, 2009

I'm trying to upload a file via FTP from my local computer to an FTP server, which is also on my local computer at the moment. I've got this sub I'm calling:

Public Sub UploadFTPFile(ByVal ftpservername, ByVal fullfilepath, ByVal filename, ByVal username, ByVal password)Dim clsRequest As System.Net.FtpWebRequest = _
DirectCast(System.Net.WebRequest.Create("ftp://" & ftpservername & "/" & filename), System.Net.FtpWebRequest)
clsRequest.Credentials = New System.Net.NetworkCredential(username, password)
clsRequest.Method = System.Net.WebRequestMethods.Ftp.UploadFile

[Code]...

I'm running an FTP Server using Golder FTP Server, which is freeware. I think it's setup correctly because connecting to the FTP Server using the exact same string as above using Windows Explorer works great.

View 2 Replies

Create Log File To Track Progress And Populate Controls Via Text File Or XML File?

May 22, 2009

I am trying to create a log file which I am going to use to populate some controls (DataGridView or Treeview). I am trying to figure out if should use text files or XML files to do so. Effectively the log will highlight multiple phases in a client-side app. The log will be written to at various phases when the project is running. The user will always have the options move on to the next phase or save progress and exit the project. As such, I want the log file to highlight how far the user has progressed throught the various phases AND I want the log to highlight varous information from each phase. Whenever the user starts the project, they will be given the option to load existing log files. So the project will have to read these log files and append them where necessary as the user progresses.

I am not sure what the best way to do this is and below is a rudimentary approach using text files. As you can see, the top of the file would have a summary of all the phases and whether or not the user completed each phase. Next each phase would have a data section highlighting what data was stored along the way. I have used a ":" to denote each section. Then within each section I would obviously need to use a delimeter for all my data. So if Phase1 = True, then I would load all the pertinent data from "Phase1:" into the desired control. Can anyone provide an efficient way of doing this and provide some insight as to whether I should use XML instead. The phases my change during development and I am not sure yet which controls I will be using. Does XML provide more flexibility.

In summary I am looking to create, read/write and append log files and populate controls with the data in varous sections of the log file. Example:

Phase1 = True
Phase2 = True
Phase3 = False
Phase4 = False

[code]....

View 5 Replies

File I/O And Registry :: Binary File Primer - Read The Nth Record Without Reading The Whole File?

May 4, 2009

I need to write data to a file, preferably in binary format, but I am unaccustomed with the concept. Where's the easiest place to get the basics? I could come here with a specific need, but I'm at the point right now where I am more willing to work within the confines of keeping it simple.

Here's what I know:
1. how to open a new file
2. how to specify the record length
3. how to close the file

Some specific questions:

Does the record length have to be constant throughout the file?

Can I read the nth record without reading the whole file?

View 8 Replies

Compress The File Without Loosing File Extension Inside Compressed File

Jan 4, 2011

I have File Like "Sample.bak" and when I compress it to be "Sample.zip" I lose the file extension inside the zip file I meann when I open the compressed file I find "Sample" without any extension.

I use this code :

Dim name As String = Path.GetFileName(filePath).Replace(".Bak", "")
Dim source() As Byte = System.IO.File.ReadAllBytes(filePath)
Dim compressed() As Byte = ConvertToByteArray(source)
System.IO.File.WriteAllBytes(destination & name & ".Bak" & ".zip", compressed)

Or using this code :

Public Sub cmdCompressFile(ByVal FileName As String)

'Stream object that reads file contents
Dim streamObj As Stream = New StreamReader(FileName).BaseStream

[CODE]...

I need to compress the file without loosing file extension inside compressed file.

View 1 Replies

File I/O And Registry :: File System Object Does Not Allow Spaces In File Names

Feb 3, 2010

I am working on a VB Console Application that takes an Autocad drawing type DWG and converts it to a PDF using a shell command that calls a third party application. In this case, acmecadconverter.exe from www.dwgtool.com. Then the PDF that is created needs a unique watermark, so I call a second application for that called pdftk.exe from www.accesspdf.com/pdftk/.

Everything works as intended, except when I try file names that contain spaces. The file system object does not tolerate spaces in the drawing file name. For instance, the following command gives me a system.io.filenotfoundexception...

My.Computer.FileSystem.RenameFile("Test Flowchart1.dwg", "Test~Flowchart1.dwg")

It's the same problem for all of my File System commands. Either file not found or invalid arguments.

The complete script I'm using is here:

Code:
Sub Main()
Dim arrArgs() As String = Command.Split(","), _
i As Integer, folderPath As String, myPart As String, _

[Code].....

View 2 Replies

File I/O And Registry :: Multidimensional Arrays - Save File/Load File?

May 13, 2012

I'm currently developing an editor for an AFL management sim.I want to be able to load three or four multidimensional arrays to the program, then save them to the same file. I tried the tutorial on here but got completely muddled up. Why can't it be easy like in VB6 When it was like 10 lines of code tops!

View 5 Replies

File I/O And Registry :: Random Access File Larger Than Text File?

Jan 7, 2009

I am writing a program to calculate Pi to several hundred billion decimal places and this will require lots of GB of memory. I wrote a test program in VB2008 that saved the first 16 digits of Pi (without the decimal point) to both a text file and a random access file, just to be sure it was outputting the numbers properly. For reference the first 16 digits of Pi are:

View 8 Replies

File I/O And Registry :: VB 2008 Express: Formatting A .txt File Written To A .txt File?

Jan 22, 2009

I have a program that can save to a .txt file.The issue is I need it to be done in a tab delimited way.Basically:

TextHere<Tab>TextHere<Tab>TextHere<NextLine>
TextHere<Tab>TextHere<Tab>TextHere<NextLine>

I have this so far, but all it does is put the TextBox1.Text next to TextBox2.Text

Code:
SaveFileDialog1.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*"
Dim FileWriter As StreamWriter
Dim results As DialogResult

[code]....

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved