How To Reduce File Size
Mar 3, 2010
how to reduce file size? for example : i have a video file that size 13MB now, i want to make the video become 500kB even if the video become shorter thant the original. because i just want a little size of it.
View 6 Replies
ADVERTISEMENT
Apr 16, 2010
Is there any way to reduce the size of a .pst file using Microsoft.Office.Interop.Outlook(programmatically start PST Compaction)?
View 1 Replies
Dec 16, 2008
Here's my scenario:
1) The user places a handful of image files into a given directory. Could be bmp's, jpg's, etc.
2) The images files will be saved into a 2nd "temp" directory and reduced down to a size reasonable for e mailing (ie. 200kb per file). I'm assuming they will end up as jpg's, so if they start out as bmp's they will need to be converted.If they start out as jpg's, and are just too big, they will need to be shrunk proportionately (ie. if they start out as 12 inches by 18 inches, they will end up as 6 x 9, or something like that).
I've found various bits of code on this forum (and others), but want to hear some opinions about the best way to go about it, assuming there might be as many as ten or twelve files that need to be manipulated. So should I read something into a memory stream (haven't tried that before), or create bitmap objects (seems slow?), etc.
View 5 Replies
Apr 19, 2009
I have a database application in which a user can add up to 6 pictures to each record. This pictures are not directly saved in the database but in a sub folder of the applicvation folder. Now, the problem is that lots of the pictures of users were taken on a digital camera with highest resolution - in these days it means that the picture files have a file size of 3MB.I would like to reduce the file size / resolution of the picture, so that the database can load and view this files more smoothly (I am not in need of a thumbnail preview, just want the pictures being a bit smaller).
The way pictures get attached / linked / 'inserted' to a database record is via OpenFileDialog. When a user selects a picture file it gets copied into the applications picture folder and renamed to the record ID of the actual record + number of the pic added.How could I reduce the picture size during adding it (OpenFileDialog / copying to folder)?
View 7 Replies
Jul 8, 2010
I like to compress the xmldata before the data is provided to the client as an excel file. I am trying to compress and deliver it as a .zip file. its not working Here's my code below. I tried compressing it, converting it to bytes etc etc. The issue with below code is, the XSL transformation is not happening properly and the output excel file is raw xml with some .net exception at the end. (that's what I see on the .xls file that's downloaded at the end) Before I started working on compression my below code was working fine that gives properly formatted excel file from the xml input. the excel file is so nice you can't even tell it was from XML.
[Code]...
View 1 Replies
Oct 13, 2010
I want to programatically delete some pixels that are unused in order to reduce the image size.Can anyone tell me how to reduce the size of an image file without changing the pixels values..
View 1 Replies
Feb 23, 2009
I have a system in VB.Net 2003, and that system takes a very long time to load. From the minute I click on the EXE, it takes one minute before the log in screen appear (P4 with 1GB RAM, no other application running). The size of the EXE is 33.2MB. I think the problem is the way I code the program, 1) I declare all the form as obj when I first load the system and I've got over a hundred forms. I try to load them as I need them but it does not work cause forms with sub form would give me an error. 2) I am using dataset as we know dataset is not very efficient but I don't know how else to connect to the database. Is there anything like ADODB in VB6?
View 2 Replies
Sep 6, 2011
I am using a DataGrid in VB. I have to reduce the default height of a row. How might I do this?
View 1 Replies
Apr 15, 2011
I am using VS2010 and have an application that lets the user search for an image to store on a SQL database. I want to be able to reduce the size of the image when it passes certain size for obvious reasons.
View 1 Replies
Apr 4, 2010
I have wrote this code to capture image of desktop and save it somewhere!
i want to know how can i reduce the size of it[code]....
View 1 Replies
Dec 5, 2010
how i can reduce image size to save in a database.
View 3 Replies
Jun 10, 2011
I have a database designed and implemented using ms sql server 2005. initially, the user has entered the pictures with a very big size because there was not restriction. now when the user is opening the crystal report so it takes alot of time and some time memory full problem occur. now i want to reduce the stored images size using vb.net. is it possible? can you help me.. because there is nothing impossible as per my experence.
View 5 Replies
Oct 8, 2009
That's the function i coded to reduse the quality of an image but its a complete FAILURE it doesnt even make sence (It firstly takes a screenshot of the desktop)
Public Function GetScreenshot() As Bitmap
On Error Resume Next
For Each MainScreen As Screen In Screen.AllScreens
[Code]....
How can i achieve a ( 800X600 / 256 Colours ) Image to have the lowest file size possible? Yeah 70KB --> 30KB makes a HUGE! difference. 30KB IS PERFECT!
View 9 Replies
Sep 8, 2009
i`m wondering if there is a way to reduce the size of a saved recording video (.avi)For a 4 sec video the size is 40 MB!
View 6 Replies
Apr 27, 2009
I have a big windows forms project I'm working on. This project has 3 pictures included as resource. I had 3 pictures of each 5mb, which resulted in a .exe file of 17mb. This had to be adressed, because thats a bit to much, so I downsized the pictures to about 100kb each. I've removed the big pictures, and inserted the new ones. But when I compile the project, the .exe file still is 17mb, and it won't get any smaller. I've tried to 'Clean Solution',
View 3 Replies
Nov 22, 2010
How to compress large mp3 files :
I want if i have a 5 mb files then it can be converted to 1mb or low ...so that the high beats and music would be very low.
i want the coding for that in vb or vb.net ?
View 1 Replies
Jan 19, 2010
I created setup file by setup project. I attached with mdf, ldf files in it , SO CAPACITY OF IT AFTER PACKING IS QUITE BIG.I want to reduce its capacity. How can i do that I see some other Setup projects which have attached with mdf ,ldf files but It is not big as SetUp file of me.
View 2 Replies
Jul 27, 2009
The code below at the moment reads a text file and then writes it out again to a different location. One thing i need to be able to do before it get written again is to scan each line and reduce any line that has more than one space in it.[code]...
View 6 Replies
Feb 13, 2010
Set picturebox size to size of image file?
View 5 Replies
Jun 8, 2011
Now all went well about from using the structure correctly. The working of the structure was perfect. How ever i missed Two important issues. The structure needed a fixed size of 10 items (9 in programming terms starting from 0) And also out of the 5 items allowed to be chosen as one of the member types for the structure a limit of 5 items of that particular type.
[Code]...
View 9 Replies
May 5, 2011
Alright here's my situation: I have a form. This is a very small form that can be moved with the mouse (formborderstyle=none). The transparencyKey is 0,0,1. The form back color is 0,0,1. There is a label on the form. I drag files to this label(its backcolor is black[0,0,0]). What I want is for the filesize to be checked. I already have the uploading to ftpcode, I just want to know if the file is above my limit I set. (250mb per file)
[Code]....
View 1 Replies
Apr 4, 2012
Language: vb.net
File size: 1GB, and stuff.
Encoding of the text file: UTF8 (so each character is represented by different numbers of bytes).
Collation: UnicodeCI (when several characters are essentially the same, the most popular version will be the one unique.). I think I know how to handle t his one.
Because each character is represented by different numbers of bytes and each line has different numbers of characters, the number of bytes in each line also vary.
I suppose we have to compute hash for each line. We also need to store buffers location where the line each. Then we have to compare buffers. Then we will check whether the same line shows up or not.
View 2 Replies
Feb 26, 2011
Check file size and take backup and re-create file? I am using this function[code]...
View 4 Replies
Aug 11, 2011
I was using the following code to check the file size of a data file on my local machine. Now the data files have been moved to a mapped network drive and this code no longer works. What do I need to change or how do I access file size on a mapped drive?
Dim MyFile As New FileInfo(MyFilePath)
Dim FileSize As Long = MyFile.Length
View 12 Replies
May 4, 2010
I'm working on a school project right now and I have everything fine except this one part of the project: "The audit and errorevent logs should be archived if they are larger than 5K and up you need to keep up to 3 copies of the files." I know how to read and write text files just fine, so I don't need help with that. What I don't know is how to archive a file based on file size, or how to keep up to 3 copies of the files?
View 2 Replies
Feb 15, 2010
I am creating a windows mobile application .I have an extraordinary amount of if/else statements, I have tried the switch/case statement [code]...
View 1 Replies
Jan 28, 2012
Is there anyway of reducing the opacity of a form to 80% but at the same time have my buttons and text boxes to remain unhindered at 100%? When I reduce the opacity of the from the opacity of the text boxes reduce as well. How could I stop this from happening
View 5 Replies
Sep 7, 2009
i need to reduce an amount of time by x% this is what i have so far [code] as u can see ive taken the hours minutes seconds from the time and stored each in a seperate variable so from 02:30:00 i then divided the hours by 60 and then 60 again to give me the total seconds in the hours and then divided the minutes by 60. i then added all 3 to give the total amount of seconds so now the buildtimetotal variable now holds the total in seconds i now need to reducce this by x% all vars are dimentioned as integers except for buildtimehoursback which is a double the problem seems to be when i try to convert the total seconds back to hours minutes seconds.
View 3 Replies
Apr 17, 2009
I'm using the code below to convert the file size in bytes (test file is 31718 bytes) to KB (30.974609375 KB) but I want to display this to one decimal place (i.e. 30.9 KB). How would I do this in VB.NET?
View 3 Replies
May 27, 2012
How to reduce form flick?
I have a tab, which has an image in it. When an user double click, I need make the panel in that tab invisible and show another image (within the same tab). I finished it. but when I make the panel invisible and image visible, the screen flicks, and it shows a black background tab for a about 1/2 or maybe 1/4 seconds.
View 1 Replies