473,414 Members | 1,944 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,414 software developers and data experts.

Help with Dynamic Graphics in ASp.net



Hi...
Some how I'm facing trouble Saving A Bitmap(I Dynamiclly creat in my
Page) Co's Every Time to Started to save the Image..
The Only thing that Appears in my Page is the Image Alone
And If I tried to asdd any Control Around it Nothing appears

bitmap.save(Response.OutputStream,ImageFormat.Gif) ;
Response.Write("Hello World");

if I done the Above code He Displays only the Image without The the
"Hello World"

Can Any Body Help me with an Example The Could Help me in this

and thanks
Alot

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #1
4 1423
You cannot write an image directly to an HTML page. You
can only put links to images in a page.
Normally your img tag would point to a jpg or a gif image file.
In your case you'll want it to point to a special page you've designed
specifically for outputting these images.
For example:
<img src='myimage.aspx' ...>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Mahmoud Mousa" <no******@link.net> wrote in message
news:uH**************@TK2MSFTNGP12.phx.gbl...


Hi...
Some how I'm facing trouble Saving A Bitmap(I Dynamiclly creat in my
Page) Co's Every Time to Started to save the Image..
The Only thing that Appears in my Page is the Image Alone
And If I tried to asdd any Control Around it Nothing appears

bitmap.save(Response.OutputStream,ImageFormat.Gif) ;
Response.Write("Hello World");

if I done the Above code He Displays only the Image without The the
"Hello World"

Can Any Body Help me with an Example The Could Help me in this

and thanks
Alot

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #2
Thanks Alot About your Reply But this Could not Help Because:the
Response.OutputStream Directly Send the Image to The Client Browser so
no Matter what I Done Beneath the Code Will not Work

like:
bitmap.Save(Response.OutputStream,imageFormat.Gif) ;
Server.Redirect("myImage.html);

the Second line of Code Will not work Co's After it Finishs its task
send it Directly to the Client Browser But I want the Image I Create to
appear in a Tamblate Page and Here is

My Problems

I want the Image to Be Saved to a Known location in my Server so I can
Add it to my Html Page as

<img src"imagecreat.aspx">

2nd I don't know How to save the Image to the Server after I creat it
that's All
And By the Way I read about Some kind of a tage Called (Replace) But I
still Don't know How to use it May you Could help me
and Thanks Alot

Yours
Mahmoud Mousa
+20 (10) 1800939
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
What we did was put an iframe in the page where the dynamic gif image is to
be shown. Then call a page which does Response.BinaryWrite of the gif image.
Then call this page in the iframe with js or otherwise and problem is
solved. There could be more elegant ways of positioning this image among
html elements. I have yet to know of it.

"Mahmoud Mousa" <no******@link.net> wrote in message
news:OR**************@TK2MSFTNGP12.phx.gbl...
Thanks Alot About your Reply But this Could not Help Because:the
Response.OutputStream Directly Send the Image to The Client Browser so
no Matter what I Done Beneath the Code Will not Work

like:
bitmap.Save(Response.OutputStream,imageFormat.Gif) ;
Server.Redirect("myImage.html);

the Second line of Code Will not work Co's After it Finishs its task
send it Directly to the Client Browser But I want the Image I Create to
appear in a Tamblate Page and Here is

My Problems

I want the Image to Be Saved to a Known location in my Server so I can
Add it to my Html Page as

<img src"imagecreat.aspx">

2nd I don't know How to save the Image to the Server after I creat it
that's All
And By the Way I read about Some kind of a tage Called (Replace) But I
still Don't know How to use it May you Could help me
and Thanks Alot

Yours
Mahmoud Mousa
+20 (10) 1800939
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #4
Pls look at an earlier post

Normally your img tag would point to a jpg or a gif image file.
In your case you'll want it to point to a special page you've designed
specifically for outputting these images.
For example:
<img src='myimage.aspx' ...>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Ivan Demkovitch" <i@a.b> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi!

I'm using output stream to output image to webpage.

//Move array to response stream.
Response.ContentType = "image/jpeg";
Response.OutputStream.Write(arrBt, 0, arrBt.Length);
Response.End();
But sometime's I want to output link to image instead of byte array.
How do I do this????

ex. //Just pass file name to response...
Response.ContentType = "text/html";
Response.OutputStream.Write((byte[])ScaledImageWebPath, 0,
(int)ScaledImageWebPath.Length);
Response.End();

(example above is not working - cannot convert string to array)
"Mahmoud Mousa" <no******@link.net> wrote in message
news:OR**************@TK2MSFTNGP12.phx.gbl... Thanks Alot About your Reply But this Could not Help Because:the
Response.OutputStream Directly Send the Image to The Client Browser so
no Matter what I Done Beneath the Code Will not Work

like:
bitmap.Save(Response.OutputStream,imageFormat.Gif) ;
Server.Redirect("myImage.html);

the Second line of Code Will not work Co's After it Finishs its task
send it Directly to the Client Browser But I want the Image I Create to
appear in a Tamblate Page and Here is

My Problems

I want the Image to Be Saved to a Known location in my Server so I can
Add it to my Html Page as

<img src"imagecreat.aspx">

2nd I don't know How to save the Image to the Server after I creat it
that's All
And By the Way I read about Some kind of a tage Called (Replace) But I
still Don't know How to use it May you Could help me
and Thanks Alot

Yours
Mahmoud Mousa
+20 (10) 1800939
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #5

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

Similar topics

6
by: Robert J. O'Hara | last post by:
I'm one of those people who practices what some consider "dull" and others consider "elegantly conservative" page design. I appreciate good traditional typography and standards-compliant liquid...
0
by: Martin Schmid | last post by:
I have a aspx with the code below... I am trying to get the output from the Click redirect to display an image that may be right-clicked to 'save as'. The image displays as expected, but when...
2
by: webonomic | last post by:
Converting data types I'm trying to do some image manipulation. This code project article (http://www.codeproject.com/csharp/imageresize.asp) has a great method I want to modefy. Here it is: ...
1
by: code | last post by:
Hi Grp http://www.books-download.com/?Book=1493-PHP+Hacks+%3a+Tips+%26+Tools+For+Creating+Dynamic+Websites+(Hacks) Description Programmers love its flexibility and speed; designers love its...
2
by: Rich | last post by:
Hello, Some database applicatins have a tooltip feature where when you are dragging the scrollbar of the table view a tooltip appears next to the mouse cursor displaying the approximate record...
1
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm wondering if it's possible to create dynamic transparent images in asp.net 2.0? This is some code (see below) from my web project. In this code below I create a...
2
by: zaheer181 | last post by:
Hai everybody, Iam assigned a task of implementing fuzzy c means algorithm in matlab to C language using graphics.h and my question is can we implement the same intensity of graphics in matlab...
0
by: pinxi | last post by:
We are seeking to hire a lead programmer to build a dynamic Web-based imaging module which will enable users to upload a digital image or photograph to the site and choose from thousands of...
68
by: zwsdotcom | last post by:
I've been looking for references for some weeks now, but haven't found an answer to the following question. I'd love some help on this: *Without* using JavaScript or other active client-side...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...

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.