By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,795 Members | 1,761 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,795 IT Pros & Developers. It's quick & easy.

Saving a bitmap form a asp.net page

P: n/a
Hi,

I have problems with saving a bitmap to hdd from my asp.net page

I get the following error: "A generic error occurred in GDI+."

Code:

Bitmap bmp = new Bitmap(240,120);

bmp.Save([path]);

/Mats.
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Mats,
I have problems with saving a bitmap to hdd from my asp.net page
That goes without saying! ;-)

However, your code means nothing as you've posted it. It has no context, and
you didn't describe exactly what you are trying to achieve with this. For
example, are you talking about having the client browser download an image
that you create on the fly somehow? What exactly is this image supposed to
be? Or, do you want them to be able to save an image that is IN the HTML
document to their hard drive? Or, perhaps, do you want to have them upload
an image to the server and save it there?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Mats Boberg" <ma*********@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl... Hi,

I have problems with saving a bitmap to hdd from my asp.net page

I get the following error: "A generic error occurred in GDI+."

Code:

Bitmap bmp = new Bitmap(240,120);

bmp.Save([path]);

/Mats.

Nov 18 '05 #2

P: n/a
Hi,

I have an array with int values that i post to a asp.net page.

I create a bitmap ín memory and insert the values as points to create the
"image"...

Then i want to save the bitmap to disk.

Quite simple...

I've tested to just create a bitmap in memory and save it but i always get
the same error as i wrote before...

/Mats.
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:OS**************@tk2msftngp13.phx.gbl...
Hi Mats,
I have problems with saving a bitmap to hdd from my asp.net page
That goes without saying! ;-)

However, your code means nothing as you've posted it. It has no context,

and you didn't describe exactly what you are trying to achieve with this. For
example, are you talking about having the client browser download an image
that you create on the fly somehow? What exactly is this image supposed to
be? Or, do you want them to be able to save an image that is IN the HTML
document to their hard drive? Or, perhaps, do you want to have them upload
an image to the server and save it there?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Mats Boberg" <ma*********@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have problems with saving a bitmap to hdd from my asp.net page

I get the following error: "A generic error occurred in GDI+."

Code:

Bitmap bmp = new Bitmap(240,120);

bmp.Save([path]);

/Mats.


Nov 18 '05 #3

P: n/a
Check if directory where you try to save bitmap have write permission for
ASPNET user

Gerasha

"Mats Boberg" <ma*********@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have problems with saving a bitmap to hdd from my asp.net page

I get the following error: "A generic error occurred in GDI+."

Code:

Bitmap bmp = new Bitmap(240,120);

bmp.Save([path]);

/Mats.

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.