CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 11/8/2004 8:19:16 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 25 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
ruffone
Asp.Net User
DynamicImage do not display11/8/2004 8:19:16 PM

0/0

Hi All,
I am using DynamicImage to display multiple images on a page. The images are stored in a database table. The problem is that only some of the images are displayed when the page is opened multiple times. In place of the images that are not displayed is a message "The data for this image has expired". Whets going on here and how might this problem be eliminated.

Thanks
Fredrik N
Asp.Net User
Re: DynamicImage do not display11/8/2004 9:26:40 PM

0/0

I will only let you know that the DynamicImage is removed form the product.
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
ruffone
Asp.Net User
Re: DynamicImage do not display11/9/2004 2:03:06 PM

0/0

Is there a list somewhere of the stuff that is removed from the product?

Thanks
sreedhark
Asp.Net User
Re: DynamicImage do not display11/9/2004 3:16:40 PM

0/0

Features postponed for ASP.NET 2.0 Beta 2

and

Directory changes


Sreedhar
Microsoft MVP (ASP.NET)
http://www.w3coder.com
weblog http://weblogs.asp.net/skoganti
ruffone
Asp.Net User
Re: DynamicImage do not display11/10/2004 2:29:52 PM

0/0

What is a recommended way to display images stored in a database in .Net 2. It's kind of convoluted in .Net 1
Fredrik N
Asp.Net User
Re: DynamicImage do not display11/10/2004 3:00:41 PM

0/0

You can create your own Image generator.

Here is an example from Shanku Niyogi:


<%@ WebHandler Language="C#" Class="ImageHandler" %>

using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Web;
using System.Web.Caching;
public class ImageHandler : IHttpHandler {

public void ProcessRequest (HttpContext context) {

// Get the image ID from querystring, and use it to generate a cache key.
String imageID = context.Request.QueryString["PhotoID"];
String cacheKey = context.Request.CurrentExecutionFilePath + ":" + imageID;

Byte[] imageBytes;

// Check if the cache contains the image.
Object cachedImageBytes = context.Cache.Get(cacheKey);

if (cachedImageBytes != null)
{
imageBytes = (Byte[])cachedImageBytes;
}
else
{
// Get image from business layer, and save it into a Byte array as JPEG.
Image im = PhotoLibrary.GetImage("PhotoID");

MemoryStream stream = new MemoryStream();

im.Save(stream, ImageFormat.Jpeg);
stream.Close();
im.Dispose();
imageBytes = stream.GetBuffer();
// Store it in the cache (to be expired after 2 hours).
context.Cache.Add(cacheKey, imageBytes, null,
DateTime.MaxValue, new TimeSpan(2, 0, 0),
CacheItemPriority.Normal, null);
}

// Send back image.
context.Response.ContentType = "image/jpeg";
context.Response.Cache.SetCacheability(HttpCacheability.Public);
context.Response.BufferOutput = false;
context.Response.OutputStream.Write(imageBytes, 0, imageBytes.Length);
}

public bool IsReusable {

get {

return false;

}
}
}

/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
PHP Solutions: Dynamic Web Design Made Easy: Dynamic Web Design Made Easy Authors: David Powers, Pages: 468, Published: 2006
Pain Therapy Through New Images of Self: Creative-Dynamic Image Synthesis Authors: Katja Obenaus, Pages: 292, Published: 2007
The Transcendent Function: Jung's Model of Psychological Growth Through Dialogue with the Unconscious Authors: Jeffrey C. Miller, Carl Gustav Jung, Pages: 230, Published: 2004
Concepts of Criticism Authors: Rene Wellek, Stephen G. Nichols, Pages: 420, Published: 1963

Web:
Dynamic Image Gallery and Slideshow - Web Development Blog Is it possible mouse hover (not click) as action trigger to display the large image ? achmadbiz on 18 May 2008 at 3:53 am. [...] Dynamic Image Gallery and ...
Dynamic Image Gallery - Documents Dynamic Image Gallery: Tell it where the images are, it will display them ... If you do not like Java scripts, you can open the Dynamic Image Gallery with ...
Dynamic Image Gallery - PHP and ASP Dynamic Image Gallery ... How will you ensure that images will not be cropped? Do not warry about this:. The Dynamic Image Gallery AUTOMATICALLY resize the images to the right size, ...
How to display a dynamic image from blob data I am wondering whether there is a way to display a dynamic image from .... Otherwise, if on the render pass the image does not change (the ...
Dynamic image galleries using CSS and DOM This allows us to display a range of images in a slick, nice way that does not force the visitor to reload the page for every image. ...
CS3 AS2.0 Dynamic Image issue cs3 as2.0 dynamic image issue. ... do not show image ... And if so can I have the image display in a dynamic text box or what do I have to ...
DynamicImage DynamicImage renders an image that is painted dynamically by a Java paint ... for those browsers that normally do not display transparent pngs correctly. ...
Dynamic Image Generation with PHP If you do not specify a content type header at all, PHP automatically sends ... The first two strings will appear at the top of the diagram and display the ...
Organizer for Webmasters - Dynamic Image Gallery Your browser does not support inline frames or is currently configured not ... the Dynamic Image Gallery where are the images that you would like to show! ...
VirtueMart Developer Portal Even if you do not use dynamic image resizing, you still have to set a thumbnail image width and height amount or the images ... Nothing found to display. ...




Search This Site:










.htm pages not displaying correctly

using openquery as sql statement

problem with installing pubs database in the guided tour

login

microsoft office outlook will not start with visual c++ runtime error

connection problem

from grid layout to flow layout

my project has gone mad

.net development server

how to enable code collapse on .vb files ?

see my web page in iis

foreign key

i can't debug

query: vwd2005 error list woes

e-mail notification help!!!

send email control?

how can i change the theme of personal website starter kit?

how can i know whether a hosting support remote/network transactions?

how to refer the source of another project?

ide crashes constantly r6025 : pure virtual function call

user instances in sql (vwd)

returning to viswebdev2005 from browser

why are locations a problem?

server with windows sharepoint services 2.0?

oh why is the: current thread is not in a single-threaded apartment

help for saving files

changing the properties of a dropdownlist

a floating table?

could i shrink sql 2005 database programmatically in asp.net 2.0?

removing events from code

  Privacy | Contact Us
All Times Are GMT