Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8698791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:48:01+00:00 2026-06-13T01:48:01+00:00

I have a code of picture resizing and image thumbnail working fine but it

  • 0

I have a code of picture resizing and image thumbnail working fine but it only support 3MB maximum file size. I want to increase the file size limit to atleast 10 to 12MB. anyone can do for me ? Thanks

   using System;
   using System.Data;
   using System.Configuration;
   using System.Web;
   using System.Web.Security;
   using System.Web.UI;
   using System.Web.UI.WebControls;
   using System.Web.UI.WebControls.WebParts;
   using System.Web.UI.HtmlControls;

   public partial class _Default : System.Web.UI.Page 
   {
    protected void Page_Load(object sender, EventArgs e)
     {
   }


     protected void Upload_Click(object sender, EventArgs e)

    {

   if (FileUpload1.HasFile)

    {

        FileUpload1.SaveAs(MapPath("Image/" + FileUpload1.FileName));

        System.Drawing.Image img1 = System.Drawing.Image.FromFile(MapPath("image/") + FileUpload1.FileName);      

        System.Drawing.Image bmp1 = img1.GetThumbnailImage(50, 50, null, IntPtr.Zero);

        bmp1.Save(MapPath("thumbnail/S/") + FileUpload1.FileName);

        System.Drawing.Image bmp2 = img1.GetThumbnailImage(100, 100, null, IntPtr.Zero);

        bmp2.Save(MapPath("thumbnail/L/") + FileUpload1.FileName);

        NormalImage.ImageUrl = "Image/" + FileUpload1.FileName;
        ThumbnailImageS.ImageUrl = "thumbnail/S/" + FileUpload1.FileName;
        ThumbnailImageM.ImageUrl = "thumbnail/L/" + FileUpload1.FileName;
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:48:02+00:00Added an answer on June 13, 2026 at 1:48 am

    You can set maximum length of file from web.config file. Try this code:

    <configuration>
    ...
    <system.web>
    
    <httpRuntime maxRequestLength="102400" executionTimeout="3600" />
    ...
    </system.web>
    </configuration>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have following code for moving 4 picture around circular way,but it can rotate
I have this code: //choosed a picture public void onActivityResult(int requestCode, int resultCode, Intent
I have this code and it always returns -1.I have three tables (a picture
I have this HTML code multiple times one after the other: <li> <img src=path/to/my/picture.jpg
I have code that generates a List<string[]> variable but can't quite figure out how
I have code that looks more or less like the code below but it
Hello i have this code that works perfect in Firefox but in IE 8
There is many algorithms to do image resizing - lancorz, bicubic, bilinear, e.g. But
I have this code @Entity @Table(name = picture) public class Picture implements Serializable {
I have the following jQuery code: $('#picture').live('change', function() { $(#formupload).ajaxForm({ target: '#newpic' }).submit(); });

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.