473,473 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

what other way is there

hey all,

i'm using the following line of c# code:

bitmap.Save(Response.OutputStream, ImageFormat.Jpeg);

and i use this by saying

image.imageurl = picture.aspx?id= ...

my question is: is there anyway to directly assign the bitmap to the
imageUrl property without needing the aspx page to host it?

thanks,
rodchar

Apr 2 '07 #1
4 1210
Hi,

I don;t understand what is your problem, the first line you are saving a
bitmap
and in the second one you are setting the image source of a image control in
a web page.

What one has to do with the other?

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:9A**********************************@microsof t.com...
hey all,

i'm using the following line of c# code:

bitmap.Save(Response.OutputStream, ImageFormat.Jpeg);

and i use this by saying

image.imageurl = picture.aspx?id= ...

my question is: is there anyway to directly assign the bitmap to the
imageUrl property without needing the aspx page to host it?

thanks,
rodchar

Apr 2 '07 #2
rodchar,

When you save a bitmap, you are saving it to the local file system.
That is, the file system on the server. When you set the imageurl property,
you need to set it to a URL that will deliver that file. There is no way to
directly assign the bitmap to the ImageUrl property. What you are doing
(generating the image in a separate referenced page) is what is required,
due to the nature of HTML (with the ability to hotlink).

Is there a block that you are hitting because of this?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:9A**********************************@microsof t.com...
hey all,

i'm using the following line of c# code:

bitmap.Save(Response.OutputStream, ImageFormat.Jpeg);

and i use this by saying

image.imageurl = picture.aspx?id= ...

my question is: is there anyway to directly assign the bitmap to the
imageUrl property without needing the aspx page to host it?

thanks,
rodchar

Apr 2 '07 #3
i guess i was just wondering how the 3rd party tools did it because all you
have to do in those is drag a control out from the toolbox and bind to it.

"Nicholas Paldino [.NET/C# MVP]" wrote:
rodchar,

When you save a bitmap, you are saving it to the local file system.
That is, the file system on the server. When you set the imageurl property,
you need to set it to a URL that will deliver that file. There is no way to
directly assign the bitmap to the ImageUrl property. What you are doing
(generating the image in a separate referenced page) is what is required,
due to the nature of HTML (with the ability to hotlink).

Is there a block that you are hitting because of this?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:9A**********************************@microsof t.com...
hey all,

i'm using the following line of c# code:

bitmap.Save(Response.OutputStream, ImageFormat.Jpeg);

and i use this by saying

image.imageurl = picture.aspx?id= ...

my question is: is there anyway to directly assign the bitmap to the
imageUrl property without needing the aspx page to host it?

thanks,
rodchar



Apr 3 '07 #4
Sorry about that last reply it probably didn't make any sense. The 3rd part
control i was referring to was the charting controls (pie, bar graphs). This
is just an FYI not a question. Thanks for your help.

"rodchar" wrote:
i guess i was just wondering how the 3rd party tools did it because all you
have to do in those is drag a control out from the toolbox and bind to it.

"Nicholas Paldino [.NET/C# MVP]" wrote:
rodchar,

When you save a bitmap, you are saving it to the local file system.
That is, the file system on the server. When you set the imageurl property,
you need to set it to a URL that will deliver that file. There is no way to
directly assign the bitmap to the ImageUrl property. What you are doing
(generating the image in a separate referenced page) is what is required,
due to the nature of HTML (with the ability to hotlink).

Is there a block that you are hitting because of this?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:9A**********************************@microsof t.com...
hey all,
>
i'm using the following line of c# code:
>
bitmap.Save(Response.OutputStream, ImageFormat.Jpeg);
>
and i use this by saying
>
image.imageurl = picture.aspx?id= ...
>
my question is: is there anyway to directly assign the bitmap to the
imageUrl property without needing the aspx page to host it?
>
thanks,
rodchar
>
>
>
Apr 3 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
92
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
137
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
8
by: Midnight Java Junkie | last post by:
Dear Colleagues: I feel that the dumbest questions are those that are never asked. I have been given the opportunity to get into .NET. Our organization has a subscription with Microsoft that...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
agi2029
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 projectplanning, coding, testing,...
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.