Hi all

In my file upload control i uploaded a large image, let say of 3 MB, how can i reduce its file size to kbs.

I am also re sizing that image and maintaining its quality, that's ok, but how can i reduce its file size.

7 Years
Discussion Span
Last Post by Atul Dhiman

Well, let's see, i'm not a guru when it comes to these things. I suggest that u keep things simple if it won;t hurt you. Resize the image before using it, i think that would be a much easier way.
Anyway it depends on what you are doing with that image....


HI sir i read your Question,, I didn't exact ally understand your Question but
suppose if you are using GridView or DetailView to show the image Just Fix the Height and Width of image with Properties here

see here

<asp:TemplateField HeaderText="Image">
                                    <asp:Image ID="Image1" runat="server" Height="100px" 
                                        ImageUrl='<%# Eval("path") %>' Width="100px" />
                                    <asp:FileUpload ID="FileUpload1" Filename='<%Bind("path") %>'  runat="server"  /> 

Edited by Ezzaral: Snipped promotion link.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.