Thank you for considering Aspose.
I have reproduced this error. I use the following code to get Bitmap and it fails:
WebRequest webrq = WebRequest.Create(url);
I will study this issue and try to solve this problem. If you know how to get the Bitmap, please tell me.
In my further test I found there is no problem. Here is the XML I used for test:
http://localhost/WebApplication1/GetImage.aspx" Type="jpeg" ImageScale="0.6">
And here is the code of the GetImage.aspx:
System.IO.FileStream fs = new System.IO.FileStream("D:/share/apple.jpg",System.IO.FileMode.Open);
fs.Position = 0;
byte buf = new byte[fs.Length];
Response.ContentType = "image/jpeg";
So can you please give me a url that can reproduce this erro? Or some code that can build a aspx locally?
I appeciate your help. Actually, the problem was, I have not provided access to the file without log on in the web.config file. Since our site is a protected web site, all users have to log on first.
Now, I have exempted this file from authorization and it's working fine.
Thanks for your help