CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 8/25/2003 9:02:16 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
ed_goes_net
Asp.Net User
Generating Images on the fly and then display it8/25/2003 9:02:16 PM

0/0

Dear all,

I wanted to make a control which generates a image based on propertys. So far no problem. But how to render this on the page?

I have seen some examples where they store the image in the session object and then render a img tag with the src points to a second page. This second page will then write the image fetched from the session object to a stream. This works but then all image will then remain in the session object until the session timed out? Is there a way to destroy those image objects from the session as soon as the page isn't displayed anymore, or???

Or does anyway has another solution.

PS: This control is for a intranet, will expect around 50 sessions with around 100 of this controls renderd by each session.

Thkx,

@win
jwyckoff
Asp.Net User
Re: Generating Images on the fly and then display it8/25/2003 9:12:09 PM

0/0

You have two options:

Option A: follow the pattern you described above.

Option B: persist the image as a file on your server's filesystem. If you do this, then you'll need some clean-up logic to purge old files.

Is there a way to destroy those image objects from the session as soon as the page isn't displayed anymore??

No, not really. The beauty of HTTP is that it's a stateless protocol. The downside of HTTP is that it's a stateless protocol. There is no such things a determining if a page is "displayed" or "not displayed".

You can do some hacks -- where you store the current page's URL in session, and when it changes, you delete all images in sessino associated with the previous page... but that's not a perfect solution.

Jason
Jason Wyckoff

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET Cookbook Authors: Michael A. Kittel, Michael A. Kittel Geoffrey T. LeBlond, Geoffrey T. LeBlond, Pages: 824, Published: 2004
Ajax Design Patterns: Creating Web 2.0 Sites with Programming and Usability Patterns Authors: Michael Mahemoff, Pages: 635, Published: 2006
Web Site Cookbook: Solutions & Examples for Building and Administering Your Web Site Authors: Doug Addison, Pages: 261, Published: 2006
Beginning Ajax with PHP: From Novice to Professional Authors: Lee Babin, Pages: 253, Published: 2007
The Internet Encyclopedia: A - F Authors: Hossein Bidgoli, Pages: 880, Published: 2004
Advances in Networks, Computing and Communications 4 Authors: unknown, Pages: 0, Published: -1
Data Mining and Data Visualization: Data Mining and Data Visualization Authors: Calyampudi Radhakrishna Rao, Edward J. Wegman, Jeffrey L. Solka, Pages: 643, Published: 2005
Complete Maya Programming: An Extensive Guide to MEL and the C++ API Authors: David A. D. Gould, Pages: 503, Published: 2002
Practical Rails Plugins: Build Great Websites Fast Authors: Nick Plante, David Berube, Pages: 420, Published: 2008
Proceedings of the Fifth Workshop on Neural Networks--Academic/Industrial/NASA/Defense: An International Conference on Computational Intelligence : Neural Networks, Fuzzy Systems, Evolutionary Programming and Virtual Reality : WNN93/FNN93, November 7-10, 1993, San Francisco Airport Marriott, California Authors: Society for Computer Simulation, Mary Lou Padgett, Walter J. Karplus, International Neural Network Society, IEEE Neural Networks Council, Pages: 396, Published: 1993

Web:
Generate image on the fly c# - .NET C# fly i.e. get the array of bytes and display it on the browser Assume i have an Generate.aspx that contain the button and its input to generate the image ...
InformIT: Generating Images On-the-Fly with ASP.NET and GDI+ ... If you want to dynamically generate an image and display the image in a Web Page , then you actually need to create two ASP.NET pages. ...
Generating ASP.NET Images on the Fly [ASP & .NET Tutorials] NET framework make the task of generating images on the fly very easy. .... Image objects -- oImage and oThumbnail . Then we get the absolute path of the ...
Generating ASP.NET Images on the Fly - ASPdev.org NET framework make the task of generating images on the fly very easy. .... a hacker could persuade the script to attempt to access and display any file on ...
Dynamic Thumbnail Images Creation in Asp.Net - Generating ... Its really hectic to display the thumbnail images without any distortion and .... is only simple methods of creating thumbnail images at run-time or on fly. ...
Generate thumbnails on the fly - ASP.NET Forums Well, if you're dealing with folders with only images, then the ... using an HttpHandler to generate and display a thumbnail image and ...
Generate Thumbnail images on the fly. - PHP Generate Thumbnail images on the fly. - PHP Community and Forum - Our ... on the display page resizes the image if it isn't there, and then ...
CodeProject: How to Create Text Image on the fly with ASP.NET ... Shows you how to display an image with a text written on it to prevent users ... There may be other uses of generating text images, I'm not sure for what ...
Generating Images on the Fly: EServer TC Library ... and feel on demand, display newly created passwords as bot-defying GIFs, and more. Please share your rating/opinion of "Generating Images on the Fly". ...
ASP 101 - Generating Text Images on the Fly with ASP.NET By generating an image with a text message, you can ask visitors to type in the ... and date as an image as well as one that takes a parameter to display. ...

Videos:
Computers versus Common Sense Google TechTalks May 30, 2006 Douglas Lenat Dr. Douglas Lenat is the President and CEO of Cycorp. Since 1984, he and his team have been constructi...
(888)MOAX.ORG Microsoft Offfice Accounting Xchange 4_IT_JOURNAL.wmv (888)MOAX.ORG Microsoft Offfice Accounting Xchange 4_IT_JOURNAL.wmv - 31 min - Apr 23, 2008 USStudios - http://www.onafree.com (1 Rating) Rate: (...
Kirby Air Ride another video




Search This Site:










page load exception in dnn 3.0.13. is this a bug?

ldap query on windows 2000 vs windows 2003 with anonymous connections

how to make a friendly url?

smart client starter kit/example?

formauthentication problem.

has the user signed in?

aspnet account

problem with ~/ in master page path.

install / uninstall scripts

asp.net configuration choice missing on website tab and in solution explorer (iis web fpse remote access)

recent projects not displaying my recent projects

how to get connectionstring in web.config

help! "the request was aborted: could not create ssl/tls secure channel" error!

linq and vs 2005

moreover free rss news feeds

dotnetnuke.services.exceptions.pageloadexception: multiple controls with the same id 'ctr372_dd' were found. findcontrol requires that controls have unique

solpart menu size

how to get basic authentication credentials

email display name - enhancement

unauthorizedaccessexception: :asp.net

how to use map property in image control inasp.net 2.0

ntlm impersonation using system.net.webrequest

vote for a dnn core team logo

post dnn articles to another subdomain

forum/blog module install failed

tfs and wap ? view a control in design mode is very long (15 minutes)

dnn search/indexer

ide line length

automatic login

can someone check a db entry?

 
All Times Are GMT