473,395 Members | 2,079 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

This Image Generating thing...

Hey!

I wrote a message yersterday and got some good answers and have now managed
to generate a nice image. The problem is that it's all generated in an
Images.Aspx file and I don't really want that. I am writing a WebControl
Library and I want to generate everything from there...

In the Render Sub of the Control I output some HTML and there I need to
reference to a file in the <img> element, is there anyway to NOT have to
point to a aspx file (that generated the picture) there and instead point to
a more local way that I can include in my WebControl Library?

I guess it's possible to render the image as a file and put on the
serverdisk and then point to it but that would be a security risk I guess
and can't really asume, that people that would use this control, like to set
permissions on the server to make it work.

How do I do this?

best regards/
Lars Netzel
Nov 19 '05 #1
8 1454
If I am correct, you want to create a WebControl that creates an image AND
includes the <img=>... tags when rendered, correct?

You COULD put the binary image inline, but I would not recomend that.

From a browser's point of view an img tag creates another request to the
server to grab the image. So you would need 2 controls/pages:
1) The image creation page, which it looks like you aready have
(images.aspx)
2) The web control which renders the <img> tag.

The webcontrol will render something like "<img
src="/images.aspx?parameters" height=x width=x/>"
When the browser then gets this HTML, it will call up /images.aspx to grab
the actual image.

That's the most straight forward way of doing it that I can think of off
hand.

Steve

"Lars Netzel" <tr*****@apa.se> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
Hey!

I wrote a message yersterday and got some good answers and have now managed to generate a nice image. The problem is that it's all generated in an
Images.Aspx file and I don't really want that. I am writing a WebControl
Library and I want to generate everything from there...

In the Render Sub of the Control I output some HTML and there I need to
reference to a file in the <img> element, is there anyway to NOT have to
point to a aspx file (that generated the picture) there and instead point to a more local way that I can include in my WebControl Library?

I guess it's possible to render the image as a file and put on the
serverdisk and then point to it but that would be a security risk I guess
and can't really asume, that people that would use this control, like to set permissions on the server to make it work.

How do I do this?

best regards/
Lars Netzel

Nov 19 '05 #2
Okay! Thanx, I was afraid of that that was the only way. The thign is I've
seen really cool Chart Controls for the web that renders 3d illustrations
using GDI+ and since they cost a lot I asume they have protected the code
for the image rendering and if it is like you say.. that you can only render
the image from an aspx file.. the code is pretty much open to all... and
also a bit harder to distribute, the user will need to add the aspx file to
his projects.. I wanted to see if it's possible to make a ONE dll solution
for the solution that would incluse all the pictures and just work.

What's your thoughts on this?

/Lars

"Steve Lutz" <sl***@nospam.comcast.net> skrev i meddelandet
news:uq****************@TK2MSFTNGP10.phx.gbl...
If I am correct, you want to create a WebControl that creates an image AND
includes the <img=>... tags when rendered, correct?

You COULD put the binary image inline, but I would not recomend that.

From a browser's point of view an img tag creates another request to the
server to grab the image. So you would need 2 controls/pages:
1) The image creation page, which it looks like you aready have
(images.aspx)
2) The web control which renders the <img> tag.

The webcontrol will render something like "<img
src="/images.aspx?parameters" height=x width=x/>"
When the browser then gets this HTML, it will call up /images.aspx to grab
the actual image.

That's the most straight forward way of doing it that I can think of off
hand.

Steve

"Lars Netzel" <tr*****@apa.se> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
Hey!

I wrote a message yersterday and got some good answers and have now

managed
to generate a nice image. The problem is that it's all generated in an
Images.Aspx file and I don't really want that. I am writing a WebControl
Library and I want to generate everything from there...

In the Render Sub of the Control I output some HTML and there I need to
reference to a file in the <img> element, is there anyway to NOT have to
point to a aspx file (that generated the picture) there and instead point

to
a more local way that I can include in my WebControl Library?

I guess it's possible to render the image as a file and put on the
serverdisk and then point to it but that would be a security risk I guess
and can't really asume, that people that would use this control, like to

set
permissions on the server to make it work.

How do I do this?

best regards/
Lars Netzel


Nov 19 '05 #3
Hi Lars,

First, if your ASP.Net code is pretty much open to all, you have a SERIOUS
security hole on your web server!

Second, you must understand that in a web page, an image is requested via a
URL. Now, you could always write a custom HTTP handler that handles the
image request, but you will still have to have a URL that the HTTP handler
can respond to. It is actually much simpler (and just as secure) to do it
the easy way, and write an ASPX page that serves up the image.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Lars Netzel" <tr*****@apa.se> wrote in message
news:O6*************@TK2MSFTNGP11.phx.gbl...
Okay! Thanx, I was afraid of that that was the only way. The thign is I've
seen really cool Chart Controls for the web that renders 3d illustrations
using GDI+ and since they cost a lot I asume they have protected the code
for the image rendering and if it is like you say.. that you can only
render the image from an aspx file.. the code is pretty much open to
all... and also a bit harder to distribute, the user will need to add the
aspx file to his projects.. I wanted to see if it's possible to make a ONE
dll solution for the solution that would incluse all the pictures and just
work.

What's your thoughts on this?

/Lars

"Steve Lutz" <sl***@nospam.comcast.net> skrev i meddelandet
news:uq****************@TK2MSFTNGP10.phx.gbl...
If I am correct, you want to create a WebControl that creates an image
AND
includes the <img=>... tags when rendered, correct?

You COULD put the binary image inline, but I would not recomend that.

From a browser's point of view an img tag creates another request to the
server to grab the image. So you would need 2 controls/pages:
1) The image creation page, which it looks like you aready have
(images.aspx)
2) The web control which renders the <img> tag.

The webcontrol will render something like "<img
src="/images.aspx?parameters" height=x width=x/>"
When the browser then gets this HTML, it will call up /images.aspx to
grab
the actual image.

That's the most straight forward way of doing it that I can think of off
hand.

Steve

"Lars Netzel" <tr*****@apa.se> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
Hey!

I wrote a message yersterday and got some good answers and have now

managed
to generate a nice image. The problem is that it's all generated in an
Images.Aspx file and I don't really want that. I am writing a WebControl
Library and I want to generate everything from there...

In the Render Sub of the Control I output some HTML and there I need to
reference to a file in the <img> element, is there anyway to NOT have to
point to a aspx file (that generated the picture) there and instead
point

to
a more local way that I can include in my WebControl Library?

I guess it's possible to render the image as a file and put on the
serverdisk and then point to it but that would be a security risk I
guess
and can't really asume, that people that would use this control, like to

set
permissions on the server to make it work.

How do I do this?

best regards/
Lars Netzel



Nov 19 '05 #4
So how does the big guys do this then, check this demosite out... It's a
picture that I guess has do be dynamically rendered... and there's no aspx
reference in the SRC of IMG element

http://demo.xceedsoft.com/XceedChartExplorer/
/Lars Netzel
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> skrev i meddelandet
news:OB**************@TK2MSFTNGP10.phx.gbl...
Hi Lars,

First, if your ASP.Net code is pretty much open to all, you have a SERIOUS
security hole on your web server!

Second, you must understand that in a web page, an image is requested via
a URL. Now, you could always write a custom HTTP handler that handles the
image request, but you will still have to have a URL that the HTTP handler
can respond to. It is actually much simpler (and just as secure) to do it
the easy way, and write an ASPX page that serves up the image.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Lars Netzel" <tr*****@apa.se> wrote in message
news:O6*************@TK2MSFTNGP11.phx.gbl...
Okay! Thanx, I was afraid of that that was the only way. The thign is
I've seen really cool Chart Controls for the web that renders 3d
illustrations using GDI+ and since they cost a lot I asume they have
protected the code for the image rendering and if it is like you say..
that you can only render the image from an aspx file.. the code is pretty
much open to all... and also a bit harder to distribute, the user will
need to add the aspx file to his projects.. I wanted to see if it's
possible to make a ONE dll solution for the solution that would incluse
all the pictures and just work.

What's your thoughts on this?

/Lars

"Steve Lutz" <sl***@nospam.comcast.net> skrev i meddelandet
news:uq****************@TK2MSFTNGP10.phx.gbl...
If I am correct, you want to create a WebControl that creates an image
AND
includes the <img=>... tags when rendered, correct?

You COULD put the binary image inline, but I would not recomend that.

From a browser's point of view an img tag creates another request to the
server to grab the image. So you would need 2 controls/pages:
1) The image creation page, which it looks like you aready have
(images.aspx)
2) The web control which renders the <img> tag.

The webcontrol will render something like "<img
src="/images.aspx?parameters" height=x width=x/>"
When the browser then gets this HTML, it will call up /images.aspx to
grab
the actual image.

That's the most straight forward way of doing it that I can think of off
hand.

Steve

"Lars Netzel" <tr*****@apa.se> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
Hey!

I wrote a message yersterday and got some good answers and have now
managed
to generate a nice image. The problem is that it's all generated in an
Images.Aspx file and I don't really want that. I am writing a
WebControl
Library and I want to generate everything from there...

In the Render Sub of the Control I output some HTML and there I need to
reference to a file in the <img> element, is there anyway to NOT have
to
point to a aspx file (that generated the picture) there and instead
point
to
a more local way that I can include in my WebControl Library?

I guess it's possible to render the image as a file and put on the
serverdisk and then point to it but that would be a security risk I
guess
and can't really asume, that people that would use this control, like
to
set
permissions on the server to make it work.

How do I do this?

best regards/
Lars Netzel



Nov 19 '05 #5
they are mapping the requested images to an image generating service on the
server ( ie. rewriting xxx.png as ImageGen.aspx?xxx )
"Lars Netzel" <tr*****@apa.se> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
So how does the big guys do this then, check this demosite out... It's a
picture that I guess has do be dynamically rendered... and there's no aspx
reference in the SRC of IMG element

http://demo.xceedsoft.com/XceedChartExplorer/
/Lars Netzel
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> skrev i meddelandet
news:OB**************@TK2MSFTNGP10.phx.gbl...
Hi Lars,

First, if your ASP.Net code is pretty much open to all, you have a SERIOUS security hole on your web server!

Second, you must understand that in a web page, an image is requested via a URL. Now, you could always write a custom HTTP handler that handles the image request, but you will still have to have a URL that the HTTP handler can respond to. It is actually much simpler (and just as secure) to do it the easy way, and write an ASPX page that serves up the image.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Lars Netzel" <tr*****@apa.se> wrote in message
news:O6*************@TK2MSFTNGP11.phx.gbl...
Okay! Thanx, I was afraid of that that was the only way. The thign is
I've seen really cool Chart Controls for the web that renders 3d
illustrations using GDI+ and since they cost a lot I asume they have
protected the code for the image rendering and if it is like you say..
that you can only render the image from an aspx file.. the code is pretty much open to all... and also a bit harder to distribute, the user will
need to add the aspx file to his projects.. I wanted to see if it's
possible to make a ONE dll solution for the solution that would incluse
all the pictures and just work.

What's your thoughts on this?

/Lars

"Steve Lutz" <sl***@nospam.comcast.net> skrev i meddelandet
news:uq****************@TK2MSFTNGP10.phx.gbl...
If I am correct, you want to create a WebControl that creates an image
AND
includes the <img=>... tags when rendered, correct?

You COULD put the binary image inline, but I would not recomend that.

From a browser's point of view an img tag creates another request to the server to grab the image. So you would need 2 controls/pages:
1) The image creation page, which it looks like you aready have
(images.aspx)
2) The web control which renders the <img> tag.

The webcontrol will render something like "<img
src="/images.aspx?parameters" height=x width=x/>"
When the browser then gets this HTML, it will call up /images.aspx to
grab
the actual image.

That's the most straight forward way of doing it that I can think of off hand.

Steve

"Lars Netzel" <tr*****@apa.se> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
> Hey!
>
> I wrote a message yersterday and got some good answers and have now
managed
> to generate a nice image. The problem is that it's all generated in an> Images.Aspx file and I don't really want that. I am writing a
> WebControl
> Library and I want to generate everything from there...
>
> In the Render Sub of the Control I output some HTML and there I need to> reference to a file in the <img> element, is there anyway to NOT have
> to
> point to a aspx file (that generated the picture) there and instead
> point
to
> a more local way that I can include in my WebControl Library?
>
> I guess it's possible to render the image as a file and put on the
> serverdisk and then point to it but that would be a security risk I
> guess
> and can't really asume, that people that would use this control, like
> to
set
> permissions on the server to make it work.
>
> How do I do this?
>
> best regards/
> Lars Netzel
>
>



Nov 19 '05 #6
I've given you the basics. There are several ways to achieve this, one of
which I mentioned: a custom HTTP Handler. With a custom HTTP Handler, you
could use any file extension you like. However, as I said, that isn't
necessary in your case, and would probably be much more difficult for you to
implement, or you wouldn't have to ask.

If I was steering you wrong, believe me, somebody would have told you by
now! ;-)

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Lars Netzel" <tr*****@apa.se> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
So how does the big guys do this then, check this demosite out... It's a
picture that I guess has do be dynamically rendered... and there's no aspx
reference in the SRC of IMG element

http://demo.xceedsoft.com/XceedChartExplorer/
/Lars Netzel
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> skrev i meddelandet
news:OB**************@TK2MSFTNGP10.phx.gbl...
Hi Lars,

First, if your ASP.Net code is pretty much open to all, you have a
SERIOUS security hole on your web server!

Second, you must understand that in a web page, an image is requested via
a URL. Now, you could always write a custom HTTP handler that handles the
image request, but you will still have to have a URL that the HTTP
handler can respond to. It is actually much simpler (and just as secure)
to do it the easy way, and write an ASPX page that serves up the image.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Lars Netzel" <tr*****@apa.se> wrote in message
news:O6*************@TK2MSFTNGP11.phx.gbl...
Okay! Thanx, I was afraid of that that was the only way. The thign is
I've seen really cool Chart Controls for the web that renders 3d
illustrations using GDI+ and since they cost a lot I asume they have
protected the code for the image rendering and if it is like you say..
that you can only render the image from an aspx file.. the code is
pretty much open to all... and also a bit harder to distribute, the user
will need to add the aspx file to his projects.. I wanted to see if it's
possible to make a ONE dll solution for the solution that would incluse
all the pictures and just work.

What's your thoughts on this?

/Lars

"Steve Lutz" <sl***@nospam.comcast.net> skrev i meddelandet
news:uq****************@TK2MSFTNGP10.phx.gbl...
If I am correct, you want to create a WebControl that creates an image
AND
includes the <img=>... tags when rendered, correct?

You COULD put the binary image inline, but I would not recomend that.

From a browser's point of view an img tag creates another request to
the
server to grab the image. So you would need 2 controls/pages:
1) The image creation page, which it looks like you aready have
(images.aspx)
2) The web control which renders the <img> tag.

The webcontrol will render something like "<img
src="/images.aspx?parameters" height=x width=x/>"
When the browser then gets this HTML, it will call up /images.aspx to
grab
the actual image.

That's the most straight forward way of doing it that I can think of
off
hand.

Steve

"Lars Netzel" <tr*****@apa.se> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
> Hey!
>
> I wrote a message yersterday and got some good answers and have now
managed
> to generate a nice image. The problem is that it's all generated in an
> Images.Aspx file and I don't really want that. I am writing a
> WebControl
> Library and I want to generate everything from there...
>
> In the Render Sub of the Control I output some HTML and there I need
> to
> reference to a file in the <img> element, is there anyway to NOT have
> to
> point to a aspx file (that generated the picture) there and instead
> point
to
> a more local way that I can include in my WebControl Library?
>
> I guess it's possible to render the image as a file and put on the
> serverdisk and then point to it but that would be a security risk I
> guess
> and can't really asume, that people that would use this control, like
> to
set
> permissions on the server to make it work.
>
> How do I do this?
>
> best regards/
> Lars Netzel
>
>



Nov 19 '05 #7
I appriciate you answers and your time spent on this thread. I just wanted
to see if there were other options than using an aspx file as image source.

I guess we'll wait until asp.net 2.0 and see what the DynamicImage control
can achieve!

/Lars
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> skrev i meddelandet
news:Of**************@TK2MSFTNGP10.phx.gbl...
I've given you the basics. There are several ways to achieve this, one of
which I mentioned: a custom HTTP Handler. With a custom HTTP Handler, you
could use any file extension you like. However, as I said, that isn't
necessary in your case, and would probably be much more difficult for you
to implement, or you wouldn't have to ask.

If I was steering you wrong, believe me, somebody would have told you by
now! ;-)

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Lars Netzel" <tr*****@apa.se> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
So how does the big guys do this then, check this demosite out... It's a
picture that I guess has do be dynamically rendered... and there's no
aspx reference in the SRC of IMG element

http://demo.xceedsoft.com/XceedChartExplorer/
/Lars Netzel
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> skrev i meddelandet
news:OB**************@TK2MSFTNGP10.phx.gbl...
Hi Lars,

First, if your ASP.Net code is pretty much open to all, you have a
SERIOUS security hole on your web server!

Second, you must understand that in a web page, an image is requested
via a URL. Now, you could always write a custom HTTP handler that
handles the image request, but you will still have to have a URL that
the HTTP handler can respond to. It is actually much simpler (and just
as secure) to do it the easy way, and write an ASPX page that serves up
the image.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Lars Netzel" <tr*****@apa.se> wrote in message
news:O6*************@TK2MSFTNGP11.phx.gbl...
Okay! Thanx, I was afraid of that that was the only way. The thign is
I've seen really cool Chart Controls for the web that renders 3d
illustrations using GDI+ and since they cost a lot I asume they have
protected the code for the image rendering and if it is like you say..
that you can only render the image from an aspx file.. the code is
pretty much open to all... and also a bit harder to distribute, the
user will need to add the aspx file to his projects.. I wanted to see
if it's possible to make a ONE dll solution for the solution that would
incluse all the pictures and just work.

What's your thoughts on this?

/Lars

"Steve Lutz" <sl***@nospam.comcast.net> skrev i meddelandet
news:uq****************@TK2MSFTNGP10.phx.gbl...
> If I am correct, you want to create a WebControl that creates an image
> AND
> includes the <img=>... tags when rendered, correct?
>
> You COULD put the binary image inline, but I would not recomend that.
>
> From a browser's point of view an img tag creates another request to
> the
> server to grab the image. So you would need 2 controls/pages:
> 1) The image creation page, which it looks like you aready have
> (images.aspx)
> 2) The web control which renders the <img> tag.
>
> The webcontrol will render something like "<img
> src="/images.aspx?parameters" height=x width=x/>"
> When the browser then gets this HTML, it will call up /images.aspx to
> grab
> the actual image.
>
> That's the most straight forward way of doing it that I can think of
> off
> hand.
>
> Steve
>
>
>
> "Lars Netzel" <tr*****@apa.se> wrote in message
> news:uN**************@TK2MSFTNGP14.phx.gbl...
>> Hey!
>>
>> I wrote a message yersterday and got some good answers and have now
> managed
>> to generate a nice image. The problem is that it's all generated in
>> an
>> Images.Aspx file and I don't really want that. I am writing a
>> WebControl
>> Library and I want to generate everything from there...
>>
>> In the Render Sub of the Control I output some HTML and there I need
>> to
>> reference to a file in the <img> element, is there anyway to NOT have
>> to
>> point to a aspx file (that generated the picture) there and instead
>> point
> to
>> a more local way that I can include in my WebControl Library?
>>
>> I guess it's possible to render the image as a file and put on the
>> serverdisk and then point to it but that would be a security risk I
>> guess
>> and can't really asume, that people that would use this control, like
>> to
> set
>> permissions on the server to make it work.
>>
>> How do I do this?
>>
>> best regards/
>> Lars Netzel
>>
>>
>
>



Nov 19 '05 #8
okey, thanx, so they are also in need of an "online" service for the
picture, might not be a local "kick ass" solution that I thought.

/Lars
"gerry" <ge**@hotmail.com> skrev i meddelandet
news:e1**************@TK2MSFTNGP11.phx.gbl...
they are mapping the requested images to an image generating service on
the
server ( ie. rewriting xxx.png as ImageGen.aspx?xxx )
"Lars Netzel" <tr*****@apa.se> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
So how does the big guys do this then, check this demosite out... It's a
picture that I guess has do be dynamically rendered... and there's no
aspx
reference in the SRC of IMG element

http://demo.xceedsoft.com/XceedChartExplorer/
/Lars Netzel
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> skrev i meddelandet
news:OB**************@TK2MSFTNGP10.phx.gbl...
> Hi Lars,
>
> First, if your ASP.Net code is pretty much open to all, you have a SERIOUS > security hole on your web server!
>
> Second, you must understand that in a web page, an image is requested via > a URL. Now, you could always write a custom HTTP handler that handles the > image request, but you will still have to have a URL that the HTTP handler > can respond to. It is actually much simpler (and just as secure) to do it > the easy way, and write an ASPX page that serves up the image.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> Neither a follower nor a lender be.
>
> "Lars Netzel" <tr*****@apa.se> wrote in message
> news:O6*************@TK2MSFTNGP11.phx.gbl...
>> Okay! Thanx, I was afraid of that that was the only way. The thign is
>> I've seen really cool Chart Controls for the web that renders 3d
>> illustrations using GDI+ and since they cost a lot I asume they have
>> protected the code for the image rendering and if it is like you say..
>> that you can only render the image from an aspx file.. the code is pretty >> much open to all... and also a bit harder to distribute, the user will
>> need to add the aspx file to his projects.. I wanted to see if it's
>> possible to make a ONE dll solution for the solution that would
>> incluse
>> all the pictures and just work.
>>
>> What's your thoughts on this?
>>
>> /Lars
>>
>>
>>
>> "Steve Lutz" <sl***@nospam.comcast.net> skrev i meddelandet
>> news:uq****************@TK2MSFTNGP10.phx.gbl...
>>> If I am correct, you want to create a WebControl that creates an
>>> image
>>> AND
>>> includes the <img=>... tags when rendered, correct?
>>>
>>> You COULD put the binary image inline, but I would not recomend that.
>>>
>>> From a browser's point of view an img tag creates another request to the >>> server to grab the image. So you would need 2 controls/pages:
>>> 1) The image creation page, which it looks like you aready have
>>> (images.aspx)
>>> 2) The web control which renders the <img> tag.
>>>
>>> The webcontrol will render something like "<img
>>> src="/images.aspx?parameters" height=x width=x/>"
>>> When the browser then gets this HTML, it will call up /images.aspx to
>>> grab
>>> the actual image.
>>>
>>> That's the most straight forward way of doing it that I can think of off >>> hand.
>>>
>>> Steve
>>>
>>>
>>>
>>> "Lars Netzel" <tr*****@apa.se> wrote in message
>>> news:uN**************@TK2MSFTNGP14.phx.gbl...
>>>> Hey!
>>>>
>>>> I wrote a message yersterday and got some good answers and have now
>>> managed
>>>> to generate a nice image. The problem is that it's all generated in an >>>> Images.Aspx file and I don't really want that. I am writing a
>>>> WebControl
>>>> Library and I want to generate everything from there...
>>>>
>>>> In the Render Sub of the Control I output some HTML and there I need to >>>> reference to a file in the <img> element, is there anyway to NOT
>>>> have
>>>> to
>>>> point to a aspx file (that generated the picture) there and instead
>>>> point
>>> to
>>>> a more local way that I can include in my WebControl Library?
>>>>
>>>> I guess it's possible to render the image as a file and put on the
>>>> serverdisk and then point to it but that would be a security risk I
>>>> guess
>>>> and can't really asume, that people that would use this control,
>>>> like
>>>> to
>>> set
>>>> permissions on the server to make it work.
>>>>
>>>> How do I do this?
>>>>
>>>> best regards/
>>>> Lars Netzel
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Nov 19 '05 #9

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

Similar topics

2
by: Joakim Braun | last post by:
Greetings, say I have a table with two rows of one column each. How do I get the text of the second row's cell to line-break at the width of the first row's cell, which is determined by the...
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...
5
by: ramendra | last post by:
how to refresh a image control to pick up the latest image file on a asp.net page. i am generating a image based on the input from the user and displaying it on the page through image control. The...
21
by: cman | last post by:
does anyone know why i can't generate images with: header("Content-type:image/jpeg"); imagejpeg($img_number); i've tried different examples but i always get a text output as if the header...
11
by: Richard | last post by:
All I want to do is to read a list of the image files in my folder and display them on a page. That way I don't have to re-write the page, I can just upload extra images. I don't need fancy...
1
by: deardp | last post by:
hi : i need to convert an image (ex: jpeg or gif) into binary form and generating the image back to the original one using python script(it was some thing like decoding and encoding). pls pass me...
53
by: angelicdevil | last post by:
ok i have a folder made on the server and uploaded image files to it...the link to the image file or rather the path to the image is uploaded in the database in 'image_path' , now i want that the...
1
by: angelicdevil | last post by:
hi i m getting the images to display but they are not getting resized here is my code <?php // generating a array with image paths $query_images = "SELECT image_path,image_name FROM...
2
by: angelicdevil | last post by:
i m trying to display the result images in table format or rows and columns but the cod i wrote displays them only in rows....someone plz help <?php // generating a array with image paths...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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 project—planning, coding, testing,...

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.