473,395 Members | 1,790 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.

Cache Image / Picture

Hi,

I use a repeater that calls a page where I display an image (sorry for my
english ;) )

This page performs a webRequest to capture a jpg file
And with the result I resize the picture and make OutputStream

I have 2 questions :

1) How can I check If the picture exists ?

2) Is it possible to store the result in a Cache System
I ve tried,
Bitmap myPicture =(Bitmap)Cache[myPictureId];
if (myPicture ==null){
myPicture=myThumbnail;
Cache.Insert(myPictureId,myPicture);
}
But I dont know how to send the result

With my initial code (without the cache), I used
Response.ContentType="image/jpeg";
myThumbnail.Save(Response.OutputStream,blabla,blab la);

Any idea ??

Stan
Jan 24 '07 #1
0 1200

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

Similar topics

7
by: Dmitry Duginov | last post by:
Hi, I have image.aspx that can accept 3 query string parameters (FolderID, ImageID, Size) and it returns full jpg image or image thumbnail (depending on size). I included the following...
0
by: Ados | last post by:
Hi, first of all sorry for my not very good English. I have upload button in my aspx file and when the user doing upload of image file, the image is resized and it is showed in data list. In...
10
by: mattmerc | last post by:
Hi all, I posted this about a week back with no response so I want to try again. I have a weird questions in regards to working with sql image data types. I know how to take the image type and...
7
by: Jake Barnes | last post by:
I've a little webcam program that snaps a picture of me and uploads it every 20 seconds. It automatically uploads the image to my server. It always give the image the same name, and thus it...
4
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property,...
3
by: OptimalDesigns | last post by:
I'm trying to convert my website onto my CD drive (F:). Images are giving me problems due to lack of knowledge for sure. My image url looks like this ......
3
by: wardemon | last post by:
Hi All, I have a aspx page named: ImageProcess.aspx that creates a thumbnail version of an image by passing the ImagePath, width, and height. The ImagePath is taken from a table from a database,...
2
by: Anees | last post by:
Am trying to load the same image to browser through Ajax in a click from a page. but, once a browser found dat the picture already taken from server, it never goes to load it from server. How...
0
by: Hal Meyer | last post by:
I am setting the contents of the webbrowser control directly using the DocumentText property, which reads a file, and replaces certain placeholders with a value set by the contents of the relevent...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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:
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
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
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.