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.

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....

run time you can compress the size of image using asp.net

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">
                                <ItemTemplate>
                                    <asp:Image ID="Image1" runat="server" Height="100px" 
                                        ImageUrl='<%# Eval("path") %>' Width="100px" />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:FileUpload ID="FileUpload1" Filename='<%Bind("path") %>'  runat="server"  /> 
                                </EditItemTemplate>
                            </asp:TemplateField>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.