Hi iperez_geniu,
From your description, I understand you want to upload the image to the server.
In ASP.NET, you can use fileupload control. the default size is 4M. if you want to resize the length of the uploading image.
you can resetting the length. check the following example.
<asp:fileupload runat="server" ID="upAfile"></asp:fileupload>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
protected void Button1_Click(object sender, EventArgs e)
{
if (upAfile.HasFile)
{
string userName = Session["username"].ToString();
string fileName = upAfile.FileName.ToString();
string filePath = HttpContext.Current.Server.MapPath("images") + "\\" + userName + "\\avatar";
if (!Directory.Exists(UpPath))
Directory.CreateDirectory(filePath);
upAfile.SaveAs(filePath +"\\"+ fileName);
image1.ImageUrl = @"images/" + userName + "/avatar/" + fileName;
}
} For more information, please double check the following links:
upload image then resize image handler
http://forums.asp.net/p/1260739/2355823.aspx#2355823
http://forums.asp.net/p/1370582/2863659.aspx#2863659
http://forums.asp.net/p/1401432/3033847.aspx#3033847
http://forums.asp.net/p/1252577/2319200.aspx#2319200
AJAX file upload
http://www.codeproject.com/KB/aspnet/AJAXUpload.aspx
http://aspalliance.com/1442_Building_AJAX_Enabled_File_Uploading_System_with_Progress_Bar_Using_ASPNET_20
http://en.fileuploadajax.subgurim.net/
Of course, you can use the FLASH upload control.
Multiple File Upload With Progress Bar Using Flash and ASP.N
http://www.codeindex.cn/3099
By the way, uploading files need writing permission for writing the files to the server.
Giving ASP.NET Proper Permissions to Upload Files
http://forums.asp.net/p/1408159/3077586.aspx#3077586
http://forums.asp.net/p/1422238/3168752.aspx#3168752
If you have any questions, please feel free to let me know.