سؤال

I have an asp.net project running on local server .

There are two jpg images in "D:\Scan\ScannedDocs\Images". I want merge these images and save to "D:\BPMSITE\BPM.Marketing\MyFiles\2013_1" after click of a button. Both paths on server machine.

System.Drawing.Image imagef = Bitmap.FromFile("D:\\Scan\\ScannedDocs\\Images\\f0000007.jpg");

I tried some combinations of this with "@" and "/" but couldn t find the file.

Problem s Source folder out of webroot.

What's the solution?

هل كانت مفيدة؟

المحلول 2

Giving Permissions to IIS Users is the Solution .Thanks

نصائح أخرى

For WebApps to map a relative path you can use the Server.MapPath method, more info here: http://msdn.microsoft.com/en-us/library/system.web.httpserverutility.mappath.aspx

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top