Web Forms :: Reduce Image Size While Fetching From Database

Feb 25, 2016

I have stored images in folder each images is more than 700kb so datalist binding process became slow.so it is possible that while loading record and corresponding images from folders Can I reduce the image size or compress images so that record fetching become faster.In database i m stroing image path and image is stored in directory.

View 1 Replies


Similar Messages:

Web Forms :: Reduce Image Size And Dimensions Using C#

May 30, 2012

I have many image in my page my images size are between 100 -200kb I want redeuce my images size to 4-5Kb ... How I can do it? is there any control to do it?

View 1 Replies

Reduce The Size of The Image In Code Behind before uploading?

Mar 18, 2011

I am using a sql server 2008 database and I am uploading images to the server using an asp.net webapplication. I have an image column that I use to store the images. I have chosen the database to store the image and not a folder on the server, because the database table will contain only very few rows. maybe close to 10 or 15 rows.

My question is, Do I have to reduce the size (dimensions and quality affecting size on disc in kbs) of the image in code behind before uploading it to the database or do I keep it as is. The total upload size permitted is 200kb. I am thinking that when the image size (size in kbs) is small my webapplication performance will not be affected when displaying them from the database.

View 6 Replies

Web Forms :: Without Effecting Quality Reduce Image File Size While Resizing Saving To Folder

Aug 31, 2013

I have uploaded a .jpg image and resized as Small and Large thumbnail. The small image is (135 X 173) but after resizing the small thumbnail image file size is of 40.8 KB. And mostly all images (around 64) thumbnails having file size more than 40 KB. Due to which thumbnails taking lot of time to get display.

Is there a way through which we can reduce the image file size upto 8 to 12 kb, but without effecting image quaity??

Below is the source code that i am using for resizing an image:

If FileUpload1.HasFile Then
Dim stream As Stream = FileUpload1.PostedFile.InputStream
Dim x As String = IO.Path.GetExtension(FileUpload1.FileName).ToLower
If x = ".jpg" Or x = ".jpeg" Then
Dim image As New Bitmap(stream)

[Code] .....

View 1 Replies

When Load Webpage Image's File Size Stays Same Rather Then Reduce

Aug 4, 2010

when I load the web page the image's file size stays the same rather then reduce.

[Code]....

View 54 Replies

Reduce PDF Size On Upload To Database?

Oct 25, 2010

I have an application that allows users to upload a pdf. I am saving the PDF into SQL (I know already this is not the best practice, but it was not my decision) and I need to some how duing this upload process reduce the size of the pdf. Is there a way to get the uploaded file, reduce its size, then stream it to SQL?

View 12 Replies

To Find A Way Out To Reduce The Data Fetching Time?

Mar 21, 2011

I need to do parallel processing in my coding because i have 4 sql to fetch data from database which each take me 3-4 minutes.All the tables involved are raw table and that is no way i can reduce the time for the sql.I need to find a way out to reduce the data fetching time.The only thing i canfigure out is to have this 4 sql execute at the same time by doing parallel processing.

View 4 Replies

Web Forms :: How To Reduce Size Of Barcode Font In C#

Sep 30, 2012

i want to reduse the size of barcode image in this code . i tried to reduce but its cutting the number ...  how can i reduce the size of this barcode image

string barCode = TextBox2.Text;
System.Web.UI.WebControls.Image imgBarCode = new System.Web.UI.WebControls.Image();
using (Bitmap bitMap = new Bitmap(barCode.Length * 40, 80))

[Code]....

View 1 Replies

Web Forms :: Optimize ScriptResource.axd And WebResource.axd To Reduce Page Size?

Dec 14, 2010

In my web application, I have used AJAX Toolkit and my .net version is 3.5. When I run the application and save the page, so many ScriptResource.axd and WebResource.axd generate which makes the file size 200 to 300 KB more big. After doing the same procedures mentioned in the above link, it was working fine as all ScriptResource.axd and WebResource.axd file is removed.

But when I go from one page to another page using on click, then Object Expected Error comes and when I debug it,I found one ScriptResource.axd file containing query string like .axd?d=-bA.like this and Request. GetResponse cannot find the file and it gives 404 errror (File Not Found).

View 3 Replies

How To Reduce Box Size

Aug 13, 2010

I have the line where is goes "Hide Suggested budget with tolerance %' then the box is too large. It is almost fine, you can see here

[URL]

The box holding the '5' for the Tolerance percent is too large. How can I reduce this?

the code for all this area is here:

[URL]

View 2 Replies

Controls :: GridView Export To PDF - Reduce Font Size

Apr 4, 2013

I am using iTextSharp to convert my html page to pdf, It works perfectly.

But the size of the font is very big.

I am using the below code,

Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", String.Format("attachment; filename={0}.pdf", Me.psn.Text))
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim sw As New StringWriter()

[Code] ....

View 1 Replies

Visual Studio :: Publish The Website And Reduce Its Size By Command Line

Sep 11, 2010

We need through command line to build our site (which we already do using msbuild.exe), but the resulting files are way too many and it takes our to ftp it to the server. I am able to publish the website and reduce its size by ~90%; however, we need to do this through command line not manually using the GUI. I have read many postings but noone is clear on how to do it (and msbuild seems to no be able to do this). Can anyone provide me a link. We are using Visual Studio 2010 and DOT NET4.0

View 3 Replies

How To Reduce Image Load Time

Dec 18, 2010

I have a problem of image loading. My site contains around 20 images on home page. It will take to much time to load.

So is there any code in asp.net framework 3.5 that will reduce the load time without jquery or javascript.

View 2 Replies

Web Forms :: Check Image File Size And Dimensions (Height And Width) Before Image Upload

Oct 18, 2013

How to upload images with some conditions

Like

size not gretr than 50 kb

with = 110px, height 140 px

etc..

View 1 Replies

Display A Spinning Gif When An Image Is Fetching From Server?

Sep 12, 2010

I would like to know how to display a loading gif picture before an image is fully loaded from server. That images are hold in a datagridview control on a master page. I searched through the web but i am really confused with what should be the possible options. should it be jquery , javascript or sth else ? and how can i implement it ?

View 4 Replies

Web Forms :: Fetching Of Files Saved In Database Using Generic Handler Is Slow

Jul 8, 2013

I have used [URL]....

above method to save and retreve files from sql server database. I have uploaded around 50-60 images as jpg. But it taking so much time to get display online. but it's working faster when accessing from local database. 

There's the page where images are displaying [URL]....

Is the speed for images retreiving from sql database is  slower as compared to retrieving images from folder..?
 
.vb code:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
scroll = fillbannerpics()
End If
End Sub

[CODE]..

View 1 Replies

AJAX :: Reduce Image Flickering Visual Studio 2005?

Aug 10, 2010

I have a program that will update the graph (using zedgraph) every 60 sec. Every update it will reload a new image file, when reloading there always flickering effect. Anyone can advice me to reduce the flickering so that it will look much more smooth than flickering.

View 7 Replies

Web Forms :: Processing Image While Submitting Data Or Fetching Data?

May 5, 2010

I want to show processing .gif image while submitting data or fetching data?

For example,When we search for hotels in any city after clicking search we have a model popup which ask you to wait and shows processing image.

View 3 Replies

Databases :: Fetching The Minimum Value From The Database?

Oct 11, 2010

MySqlCommand cmd4 = new MySqlCommand("select emp_name from employee_details where emp_category='" + cat[j] + "' and no_ofcassigned=(select MIN(no_ofcassigned) from employee_details)", AL.con);
MySqlDataReader reader2 = cmd4.ExecuteReader();
string emp=null;
while (reader2.Read())
{
emp = reader2[0].ToString();
}
reader2.Close();

i am using the above code to fetch the employee name from the datatable according to the minimum value in the column 'no_ofcassigned' in specific category but here if i have more than 3 employees with the same no_ofcassigned is there then the query is not

View 1 Replies

SQL Server :: Error While Fetching From Database?

Jan 22, 2011

Following error is thrown from the live application every now and then

[Code]....

now able to able to replicate the issue on test server. what could be the reason of the above error?

View 1 Replies

User Controls :: Redirect To Page After Fetching Its URL From Database

Jun 17, 2013

I have House_info Table in database

Id Name Behcode Password T_name

1 Sara 1111 1212 Store
2 Jack 2222 4545 Estate

and I have Admin.aspx page in this page I have EnterBTN Button and 2 Textbox  TxtBeh and TxtPass  here users enter Behcode and Password and when they click on EnterBTN Button it go to other page below is EnterBTN Event code

protected void EnterBTN_Click(object sender, ImageClickEventArgs e)
{
string data = Server.UrlEncode(Txtbeh.Text);
SqlCommand _cmd = new SqlCommand("EnterStore", _cn);
_cmd.CommandType = CommandType.StoredProcedure;
_cn.Open();

[code]....

here if users enter correct Behcode and password it go to Manager.aspx page...I want if users enter correct behcode and password if their T_name was =Store it go to Manager.aspx page And if their T_name was  Estate it go to Estate.aspx page.

View 1 Replies

Web Forms :: Image Size In Kb In Asp.net C#?

Jun 8, 2010

how can I get image size in Kb in asp.net c#.I'm providing facility to download image in 800*600 or 1024*768 dimension but along with these links I want to display actual size of image in Kb in both dimensions.

View 3 Replies

Data Controls :: Fetching Values Of Same Field From Database In Different TextBox

Oct 8, 2013

I have one page on which there are 6 labels and six text box for subject apart from this there are 2 to 3 other text box and label for studnt information. i want to do in such a way that if i enter student enroll no i get his/her name ,dept,sem,all subjects on 6 labels and marks related to subject in text box. In table there are fields 

Marks_Entry
Student_Enroll Student_Name  Sem   Program           subject                                   Marks 

1                         sss                   1         BCA      Basic Communication Skills                75
1                         sss                   1         BCA      Mathematical Foundation                   85

[code]...

now when i am entering roll no in form then student name ,program, sem is fetched but in label 1 to label 6 same subject name that is 1st subject name is copied and in text box also first marks are fetched in all textboxes..my c# code on student enroll textbox is this

protected void txtEnroll_TextChanged1(object sender, EventArgs e) {
conn.Open();
qry = "SELECT * FROM Marks_Entry WHERE Student_Enroll_No = '" + txtEnroll.Text + "'";

SqlCommand cmd = new SqlCommand(qry, conn);
SqlDataReader dr = cmd.ExecuteReader();

[code]...

how can i get different values from database

View 1 Replies

Web Forms :: Decrease The Image Size?

Jun 29, 2010

In my application image size is comming as 99999 in byte.so that i m unable to view my page because its too large.

so i want to decrease that size.

View 3 Replies

Web Forms :: Image Size Compression

Apr 27, 2016

i want to compress image size into 40 or 50 kb

string CustomerID = "";
if (Session["RoleID"] != null)
{
CustomerID = Request.Form["CustomerID"];

//string CustomerID = Request.Form["Customer.CustomerID"];
if (CustomerID != null)
{

[CODE]...

View 1 Replies







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