convert bitmap to image for ASP.NET

前端 未结 6 1550
无人及你
无人及你 2021-01-24 23:16

this is how my code look now:

System.Drawing.Image objImage = System.Drawing.Image.FromFile(Server.MapPath(\"aaa.jpg\"));

int height = objImage.Height;
int widt         


        
6条回答
  •  孤街浪徒
    2021-01-25 00:12

    Probably because saveImagePath will be a local path (such as c:\somepath\aaa.jpg) that is not reachable from the browser. You probably want to set the ImageUrl = "ImagesMerge/aaa.jpg" instead.

提交回复
热议问题