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
ADVERTISEMENT
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
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
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
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
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
Jan 21, 2010
which algorithm used for voice compression mailing and decompression
View 2 Replies
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
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
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
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
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
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
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
Jan 10, 2012
some link or could that could explain the way it could be done.
View 1 Replies
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
Apr 25, 2011
I should mention I am developing this in SharpDevelop, so if it's a bug with this software then I'll take this up with them.
So I am having issues with trying to get a right-mouse click to work. I have a grid of 30 buttons and I need to right-click to enable a button and left-click disable. I have surfed all over the internet trying to find the answer and the closest I have come to it is it detecting a left-click, but never right.
Sub Button1Click(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.Click
DataGridView1.CurrentCell = datagridview1.Rows(0).Cells(0)
[Code]......
As you can understand, I am having a lot of frustration with this. It just seems that I can't get it to work. I've scoured the internet looking for a solution without avail.
View 4 Replies
Jan 13, 2010
I have a folder named "Root" in my d: drive.The "Root" folder contains two folders namely "Child1" and "Child2".The "Child1" again contains a folder named "Sub-Child1".The "Child2" again contains a folder named "Sub-Child1".I want to do a code in such a way that i can show the folder names in a Treeview.
View 8 Replies
Jan 18, 2010
how to operate onthe excel in vb.net......such as Create an Excel 2003 file in VB.NET 2005,Open and Edit Cells in an Excel 2003 file in VB.NET,Format Excel 2003 Page in VB.NET ,How to export from database to excel,How to export from DataGridView to excel,etc.i know the structure a file excel.It contains 3 main component.
1. Application which can modify and operate cells .
2. Work book , is child of Application and contains worksheet.
3. worksheet is child of Work book and contain columns and rows.
View 11 Replies
Jan 4, 2011
I have a picturebox on the form that has the KeyTip property assigned. If I hit the corresponding key, nothing happens. It seems to only work with controls other than the PictureBox.I have set KeyPreview to True and added this
[Code]...
View 5 Replies
Apr 30, 2011
I'm having an issue with rasing an event. In my application I have a form and within that form I create an instance of a class (clsUsage). Within clsUsage I create an instance of clsUser which does several checks form permissions and other things. What I want is for clsUser to send status updates to clsUsage. ClsUser will be a dll but for now I've got it as a separate project in my solution. The RaiseEvent in clsUser seems to execute but the proc in clsUser that handles the event does not execute. I'm wondering if this is threading issue.
[Code]...
View 9 Replies
Dec 9, 2011
I have a script for uninstallation which I use to uninstall a developed application. For some reason I am getting the following message and the uninstallation is not working. The message is attached.The script for the uninstallation is follows:
Dim shell, systempath
set shell = WScript.CreateObject( "WScript.Shell" )
systempath = shell.ExpandEnvironmentStrings("%SystemRoot%")
[code].....
View 3 Replies
Oct 23, 2009
I am running Windows Vista Ultimate. I have a copy of Visual Studios 2005. The toolbar is not working. I tried all of these and none of these fixed the toolbar:
-Show all (greyed out)
-Reset Toolbar
-delete C:UsersUsernameAppDataLocalMicrosoftVisualStudio8.0*.tbd worked one time then it did not.
View 2 Replies
Oct 28, 2009
I've updated my settings via:
My.Settings.SomeString = "new text"
then I call
My.Settings.Save()
When I check the .config file, the entry under
<userSettings>
<BE.IS.My.MySettings>
<setting name="SomeString" serializeAs="String">
[code]....
... the value remained the same, unchanged.1 thing though, my app is started via Sub Main() in module file, instead of "Enable application framework". Does this affect the saving of Settings file?
View 5 Replies
Apr 12, 2009
I have created a class module with this
Imports System.Data
Imports System.Data.OleDb
Public Class DefaultReport_New
[code].....
View 1 Replies
Dec 23, 2009
I tried using LockBits to blur images, since I heard it was faster, and there's no error, but there's no blur either. It doesn't do anything. The commented-out code is the code I had before using LockBits, and it works.
vb.net
Private Sub BlurImage(ByVal img As Bitmap, Optional ByVal radius As Integer = 3, Optional ByVal blur_bounds As Object = Nothing)
Dim bb As Rectangle
[Code]....
View 3 Replies
May 12, 2009
Im having a very strange problem.. I just copied the source code from one working application to this new application. It was working fine over there but not over here in new application. Neither it was showing any error nor updating the data. Below is the source code (method) that im using ..
public static void AppendViolations(string dsPath, DataTable dtSource, string PartitionID)
{
string ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" + dsPath;
string SqlStatement = "select * from IncaViolations";
[code]....
View 8 Replies
Aug 10, 2011
I have some code written by another developer(no, really). The datagridview has the AllowUserToResizeColumns property set to true, but at runtime the grid will not allow column resizing. I've checked the code to see if the property is being set in code and I can't find anything. Is there some other grid property that, if set to a certain value, will disable column resizing?
View 2 Replies
Nov 27, 2009
I am trying to update my DGV with the following code. i have generated SQL update command in the tableadapter. but still the changes are not affecting the DB.
[Code]...
View 7 Replies
Mar 16, 2011
I have a table in my database. I have an import routine which reads rows from and XML file. It first loops through my existing table to see if the row exists using a date and store code column as a unique id. It all works fine until this senario occurs.First file is read in and a new row is added for 01/03/2011, store code 100. The second file is read in which also has a row with 01/03/2011, store code 100. But when I loop through it does not find the row I just added so it adds it again.The only solution I can think of is to re-populate the local table everytime I add a new row but this will have a massive amount of over heads.If I add a row to an existing dataset surely if I loop through that dataset I should come across it.
View 2 Replies