473,834 Members | 2,407 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generate a table of thumbnails on the fly without saving to disk

Hi,
I am trying to present the images in a folder as thumbnails in a dynamically
created asp:table.
I however do not want to save the thumbnails to disk, only show the images
in this folder as thumbnails and then forget about them.

I've seen a lot of samples using a datagrid/list and automatically bind
thumbnails to these controls, but it does not meet my requirements. I've
also seen a sample where the thumbnail of one image is genereated and then
saved to the response.output stream, which is almost what I am looking for,
but I cannot make this work with more that 1 image.

So my pseudocode for what I want is something like this:
------------------------------------------------------------
for each image in folder
add new cell in table
cell.text="<img src=" & image.getThumbn ail( ) & "/>"
next
------------------------------------------------------------

I know that the Thumbnail that is generated is an object and it will not
make sense in a src attribute, but you might see what I want.

Hope anyone can help
/espen
Nov 17 '05 #1
1 2375
Thanx a lot. This worked superb :-)

/espen

"Natty Gur" <na***@dao2com. com> wrote in message
news:uX******** ******@tk2msftn gp13.phx.gbl...
Hi,

You need to split your page to two pages. One will produce the Image by
outputstream. The other creates that images in table and set the src
attribute to the first page with the right parameters (pass as query
string).

for each image in folder
add new cell in table
cell.text="<img src= GetImage.aspx?i d=" & image.ID & "/>"
next
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

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

Nov 17 '05 #2

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

Similar topics

3
2269
by: Kevin Thorpe | last post by:
I think I know the answer to this, but suggestions welcomed. I have to store lots of information. An electricity reading every half hour for hundreds of meters for several years. The ways I thought of storing this in SQL were: 1. One table row per day with 48 fields for the readings. 144M table, 3M index saves space and having a long skinny table however, getting the min/max reading in a day is a pain. I
3
10671
by: RAllsopp | last post by:
I have a client who would like to have several pictures associated with one system. I have read about storing only the pathname to save OLE overhead and have set-up a form for my client to browse/add one picture at a time to a system. Now he would like to 'view' all of the thumbnails associated with any system on a single form. I can setup a main/subform scenario, but how do I show all of the pictures as thumbnails. I was using the...
1
6902
by: Dev | last post by:
Dear Friends, I am passing the image name, size (in bytes) and imgaeformat (like jpg or bmp or pdf) through the network. I want display the image into picturebox without saving image files into Hard disk. Just display the image into PictureBox.... Is it Possible? If so how do to this?
2
1098
by: Jon | last post by:
Hi, I've got 10 image thumbnails generated with GetThumbnailImage down the side of each page of a site. However it seems the thumbnails are being re-generated with every page request rather than cached in the browser. Is there a way to cache the thumbnails or would I be better saving them to a file? The thumbs change every hour so I really wanted to avoid having to create a file for each one Site is www.bookhead.co.uk right hand side
1
1288
by: Mladen Jablanovic via .NET 247 | last post by:
I am creating dynamically some Office documents in my ASP.NET application. When I want to send the resulting document to the client, I am currently saving it to the local disk and then redirecting user's browser to it. Is there any way to skip this saving phase, i.e. to send the document directly from memory? ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>BN9dKSONYEqICf01CWVYzA==</Id>
6
6458
by: Mark Denardo | last post by:
My question is similar to one someone posted a few months back, but I don't see any replies. Basically I want to be able to have users upload photos and save them in a database (as byte data) and be able to load them to an image webcontrol, but system.web.ui.webcontrols.image only seems to have a control to load the image from a URL. There's no way to load this directly without saving the image as a file and then using...
5
1994
by: JJ | last post by:
I have a gallery-like application. (The gallery will be actually presented in Flash, but the management (cms) of the images will be in asp.net. ) My question is, is it ok to create Thumbnail images on the fly by resizing the original sending it to the output stream (i.e. Response.ContentType = "image/jpeg"; Response.BinaryWrite(imageContent) ), or best to actually save the thumbnails to disk. Would this method result in a much slower...
6
3371
by: Karl | last post by:
Hi all, It may seem like a rather odd request (or not) but I would like to be able to create a file (doc, jpg, xls or one of many other files that can be automated) on a website and stream it to a user without saving it to the disk first. Obviously saving the file first and streaming it afterwards is fairly easy to do, but it relies on disk write permissions on the server and you'd have to make sure the file was removed afterwards.
8
2342
by: The Natural Philosopher | last post by:
I have a databse containing amongst other things many images stored as BLOBS. When listing, currently I download all the images full size and let he browser do the reduction to thumbnails. It's getting a little slow on long lists. Is there anyway to take the data and scale it down on the fly to a smaller image? I have plenty of processor power, just not much bandwidth.
0
9796
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9643
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10786
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10503
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10544
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10214
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7754
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5624
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3973
muto222
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.