473,473 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

my generated jpg image is not saved, why?

1 New Member
I have an aspx page that loads a static graphic and put session strings in it. I used Image1.Save(Server.MapPath("gen_img2.jpg"), ImageFormat.Jpeg), but it's not saved on the server. I thought this was a user permission problem, so I assigned the ASPNET account write permission to the folder, and it still doesn't work. Did I use the wrong account? I use winserver 2003 and IIS 6.
Aug 10 '10 #1
1 983
Frinavale
9,735 Recognized Expert Moderator Expert
Try this instead:
Expand|Select|Wrap|Line Numbers
  1. Server.MapPath("~/") + "gen_img2.jpg"
-Frinny
Aug 10 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: George Hester | last post by:
http://hesterloli.dnsalias.com/test/javascript_image.htm The image is the 100x100 px block. If we right-click in it and try to save the image we cannot. Is it possible to say set a mime-type so...
2
by: Olav Tollefsen | last post by:
I have som code that dynamically generates an image and writes it back to the browser from an .aspx codebehind file like this: System.Drawing.Image image; image = GenerateImage();...
0
by: Les Caudle | last post by:
Anyone have some sample code for a database generated menu based on a DataList (or other control). that would also generate the javascript necessary for a rollover to a 2nd image when the mouse...
4
by: Ersin Gençtürk | last post by:
Hi , I am creating dynamic images (for example writing text into a bitmap) and saving it to the output stream with gdi library in .net but I can't adjust image quality. The best parameters...
1
by: mfr | last post by:
(appologies for re-post, but my no-spam alias was not configured correctly). Hi, I'm using VS2005 to create a web site. On one of my aspx pages I have an ImageButton that displays an image...
6
by: JezB | last post by:
I have an Image object (i) which I want to write to a file. This does work but when I later try to do something with this file I get errors, because I think the file is still 'locked'. I have to...
1
by: ThunderMusic | last post by:
Hi, I run and aspx page that does a BinaryWrite() to the browser... This BinaryWrite contains a mimetype (image/Jpeg) and the content of a dynamicly generated image... The image is displayed...
2
by: ioanabratu | last post by:
I'm drawing dynamically on a bitmap.I want to be able to save the bitmap in the database as a JPG. I am using the following code to draw and get the bytes for the database. The image saved in the...
7
by: dino d. | last post by:
Hi- I want to create a dynamic image with areas so that when the user clicks different areas, the user jumps to those pages. The problem is, I can't seem to figure out how to do this efficiently....
2
by: henryrhenryr | last post by:
I am trying to make my php-generated images cache. Here is a summary of the script with the headers. It doesn't seem to cache though. Do I need to do something special to make sure it caches? ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
1
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...
0
tracyyun
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...
1
isladogs
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.