Hi all,
I was wondering if anybody knows why Image.save(path string) is allowed in
ASP.net without any security permissions . the user can create an image and
save it in the web page directory, but if we try to write a file to hard
disk in asp.net it needs permission. Isn't it less secure to allow images to
be saved?
Any feedback is appreciated
thnx 3 4050
Hello walid,
As long as the user that aspnet worker process runs under has a permission
to write to certain directory, it does. It all depends on how you set it up. Hi all,
I was wondering if anybody knows why Image.save(path string) is allowed in ASP.net without any security permissions . the user can create an image and save it in the web page directory, but if we try to write a file to hard disk in asp.net it needs permission. Isn't it less secure to allow images to be saved?
Any feedback is appreciated thnx
Yes, but how come if you are using the default security settings, the
image.save (string path) is allowed but IO stream write is not.
regards
"Hayato Iriumi" <hi*****@hotmai l.com> wrote in message
news:33******** *************@n ews.microsoft.c om... Hello walid,
As long as the user that aspnet worker process runs under has a permission to write to certain directory, it does. It all depends on how you set it up.
Hi all,
I was wondering if anybody knows why Image.save(path string) is allowed in ASP.net without any security permissions . the user can create an image and save it in the web page directory, but if we try to write a file to hard disk in asp.net it needs permission. Isn't it less secure to allow images to be saved?
Any feedback is appreciated thnx
walid <wk*******@hotm ail.com> wrote: Yes, but how come if you are using the default security settings, the image.save (string path) is allowed but IO stream write is not.
I believe it is - it just depends on where you're saving it to, and
whether the ASP.NET process has permission to write there.
--
Jon Skeet - <sk***@pobox.co m> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bob |
last post by:
My understanding of the image string function is this, that it allows the
display of text in Graphics
As per the parameters it receives:
ImageString($image,6,$xpos,$ypos,$out,$col)
these params:
1. name of thew image to write on
2. size of the font
3. X co-ordinate of the first letter of the string
|
by: Barry |
last post by:
Hi
Does anyone know why i am getting the following error message (line 64)
, if i change to objBitmap.Save(Response.OutputStream, ImageFormat.Jpeg) i
do not get this error
Exception Details: System.Runtime.InteropServices.ExternalException: A
generic error occurred in GDI+.
|
by: walid |
last post by:
Hi all,
I was wondering if anybody knows why Image.save(pathstring) is allowed in
ASP.net without any security permissions . the user can create an image and
save it in the web page directory, but if we try to write a file to hard
disk in asp.net it needs permission. Isn't it less secure to allow images to
be saved?
Any feedback is appreciated
thnx
|
by: mike |
last post by:
Hi all,
I am using StreamWriter class to save string var into html file but
somehow when I open the html file all formats are lost. I want to keep
all formats(spaces, newline and so on)For example, I have sFunc in
below format(newline, spaces ...)
----------sFunc ----------------
Function ABC(byval a as integer) as integer
If a > 0 then
x = 1
|
by: byrd48 |
last post by:
Hi,
I haven't had much luck searching for guidance on the following
challenge.
I have a .NET app in which I would like to take multiple thumnail
images and combine them into one flat image.
Could someone give me an example of how to take two images, imgA and
imgB and create imgC which would be one image of imgA and imgB side by
side or imgA on top of imgB. If both imgA and imgB are 10pixels x 10
pixels, the side by side version of imgC...
| |
by: peter |
last post by:
Hello all,
I'm looking for an advice.
Example (one block in ascii file):
$------------------------
NAME='ALFA'
CODE='x'
$------------------------
|
by: Daniel |
last post by:
what encoding does system.xml.xmldocument.save(string path) use to save the
xml document if there is no <?xml... in the front of the xml document?
|
by: geertolaerts |
last post by:
Hello,
I have a problem with uploading off images to my webservice, i convert
them to a byte at client side but something goes wrong when i try to
convert them back to a image at server side.
The webservice code:
public bool PutImage(byte ImgIn)
{
System.IO.MemoryStream ms =
|
by: ofzer |
last post by:
Hi,
Suspiciously, perl does not save file's permission when coping it.
In order to implement the copy , I use : use File::Copy; and File::Copy::Recursive.
The BIG problem is that the file permissions wont be saved after coping it to another place.
I found a clumsy way to keep the permission in copy();
but I dont have any idea how to achive it in discopy() as well.
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |