473,657 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Load image

Hi all...

My system contains an image which I have saved it at client side.
Unfortunately, when users want to view the image, the image doesn't
loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
form right? I've set the Image URL to be like this:
ImageUrl="C:\Ex portImage.gif".

I don't want to create a new file for placing the image since other
clients who don't have the file might not be able to access the image.
I also don't want to save it at server side since it may cause an
error if more clients want to access the same image at the same time.
How could I do this? Can anyone help me...

Thanks...

Feb 28 '07 #1
6 2730
On Feb 28, 11:13 am, nuhur...@yahoo. com wrote:
Hi all...

My system contains an image which I have saved it at client side.
Unfortunately, when users want to view the image, the image doesn't
loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
form right? I've set the Image URL to be like this:
ImageUrl="C:\Ex portImage.gif".
This is wrong. It's your C-drive.

The image should be on the server, e.g. where you aspx form is
located.

then the image url will be

ImageUrl="Expor tImage.gif"

>
I don't want to create a new file for placing the image since other
clients who don't have the file might not be able to access the image.
??
I also don't want to save it at server side since it may cause an
error if more clients want to access the same image at the same time.
In this case the aspx form with link to image will be not available as
well, don't you think? :-)

This is wrong... image should be on the server. ASP means Active
SERVER Pages and must be served by the server.

How could I do this? Can anyone help me...

Thanks...

Feb 28 '07 #2
I'm not sure I entirely understand your query; but I would be interested to
know why you think there would be any contention if the image was stored
server side?

An image in a web page will load when the rendering engine meets an <img>
tag. So to load an image you need something like <img src="path/to/image"
/>

Am I missing something here?
Peter
<nu******@yahoo .comwrote in message
news:11******** **************@ t69g2000cwt.goo glegroups.com.. .
Hi all...

My system contains an image which I have saved it at client side.
Unfortunately, when users want to view the image, the image doesn't
loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
form right? I've set the Image URL to be like this:
ImageUrl="C:\Ex portImage.gif".

I don't want to create a new file for placing the image since other
clients who don't have the file might not be able to access the image.
I also don't want to save it at server side since it may cause an
error if more clients want to access the same image at the same time.
How could I do this? Can anyone help me...

Thanks...

Feb 28 '07 #3
Hi all,

I think an example that the OP asked for could be something like a portlet
or something that the client has defined an image on their own hard disk
that they want to view. This is fairly valid as a path to the image in an
IMG tag, but may not render correctly in ImageUrl.

What the OP could try is file://c:\image.jpg

(You may need to do file://c:\\image.jpg to make it work though in your
..ImageUrl)

Hope it helps.

Best regards,
Dave Colliver.
http://www.DerbyFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Peter Bradley" <pb******@uwic. ac.ukwrote in message
news:u6******** *****@TK2MSFTNG P04.phx.gbl...
I'm not sure I entirely understand your query; but I would be interested
to know why you think there would be any contention if the image was
stored server side?

An image in a web page will load when the rendering engine meets an <img>
tag. So to load an image you need something like <img src="path/to/image"
/>

Am I missing something here?
Peter
<nu******@yahoo .comwrote in message
news:11******** **************@ t69g2000cwt.goo glegroups.com.. .
>Hi all...

My system contains an image which I have saved it at client side.
Unfortunatel y, when users want to view the image, the image doesn't
loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
form right? I've set the Image URL to be like this:
ImageUrl="C:\E xportImage.gif" .

I don't want to create a new file for placing the image since other
clients who don't have the file might not be able to access the image.
I also don't want to save it at server side since it may cause an
error if more clients want to access the same image at the same time.
How could I do this? Can anyone help me...

Thanks...


Feb 28 '07 #4
On Feb 28, 2:13 am, nuhur...@yahoo. com wrote:
Hi all...

My system contains an image which I have saved it at client side.
Unfortunately, when users want to view the image, the image doesn't
loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
form right? I've set the Image URL to be like this:
ImageUrl="C:\Ex portImage.gif".

I don't want to create a new file for placing the image since other
clients who don't have the file might not be able to access the image.
I also don't want to save it at server side since it may cause an
error if more clients want to access the same image at the same time.
How could I do this? Can anyone help me...

Thanks...
Yeah, may be you are right. Sorry... I'm very new with asp.net and
still learning on that...
So, what should I do if I want to load the image that is located at
the C-drive? I've tried to set the image url as

ImageUrl="Expor tImage.gif"

but it seems doesn't work. Any suggestions?

Thanks in advance..

Mar 1 '07 #5
On Feb 28, 2:27 am, "Alexey Smirnov" <alexey.smir... @gmail.comwrote :
On Feb 28, 11:13 am, nuhur...@yahoo. com wrote:
Hi all...
My system contains an image which I have saved it at client side.
Unfortunately, when users want to view the image, the image doesn't
loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
form right? I've set the Image URL to be like this:
ImageUrl="C:\Ex portImage.gif".

This is wrong. It's your C-drive.

The image should be on the server, e.g. where you aspx form is
located.

then the image url will be

ImageUrl="Expor tImage.gif"
I don't want to create a new file for placing the image since other
clients who don't have the file might not be able to access the image.

??
I also don't want to save it at server side since it may cause an
error if more clients want to access the same image at the same time.

In this case the aspx form with link to image will be not available as
well, don't you think? :-)

This is wrong... image should be on the server. ASP means Active
SERVER Pages and must be served by the server.
How could I do this? Can anyone help me...
Thanks...- Hide quoted text -

- Show quoted text -
Yeah, may be you are right. Sorry... I'm very new with asp.net and
still learning on that...
So, what should I do if I want to load the image that is located at
the C-drive? I've tried to set the image url as

ImageUrl="Expor tImage.gif"

but it seems doesn't work. Any suggestions?

Thanks in advance..

Mar 1 '07 #6
On Mar 1, 3:17 am, nuhur...@yahoo. com wrote:
So, what should I do if I want to load the image that is located at
the C-drive?
I think you don't understand a basic principles...

Why do you want to load it from the C-drive? It should be from the
server...

As far as I know a link to file://c:\\image.jpg will not work by
default since XP SP2 (file:// is blocked by default) and there is
absolutely no way to link to the image on a client without changing
the security settings on the client.

I've tried to set the image url as
ImageUrl="Expor tImage.gif"
but it seems doesn't work.
By using ImageUrl="Expor tImage.gif" you refer to ExportImage.gif
located in the same directory where the ASPX form is located. You have
to copy ExportImage.gif to the same directory.

Mar 1 '07 #7

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

Similar topics

1
3106
by: Charlie | last post by:
Hi I am using the following code to create an image viewer for multiple images. var pageImage = document.images; var image = new Image(); var args = GetQuerystring(); //return arguments from querystring image.src = args.imageSource; //get image src pageImage.src = ""; pageImage.src = image.src;
0
1695
by: BATISTA | last post by:
Hi I have to program in C# such that I have to add a button to the form , and create a crystal report, by getting source from the xml schema file(.xsd file) with two fields namely name,image..... name is string datatype and image is of datatype base64Binary. Now i have to add a crystal report viewer to the form and whenthe program is run, we should be able to load any image ,ie, by clicking the button add any image from the disk and...
12
6179
by: Sharon | last post by:
I’m wrote a small DLL that used the FreeImage.DLL (that can be found at http://www.codeproject.com/bitmap/graphicsuite.asp). I also wrote a small console application in C++ (unmanaged) that uses the DLL above. Now the application, together with the above DLL’s is successfully loading a TIF image file (62992 x 113386 Pixels, Huffman RLE compression, 3200 x 3200 DPI resolution, binary colored (1 Bit Per Pixel), file on disk size 43.08...
3
4383
by: Mike Dee | last post by:
Hi, I'm having an issue with the status bar in Mozilla and Netscape showing that it is still waiting on the page to load even after it is finished. This problem does NOT occur with IE. In summary, I am using a onLoad event in the BODY tag to communicate back to another server each time a page finishes loading. I do this by using a "new Image()" and setting the .src property to the server. The .src includes a value in the querystring...
4
3663
by: jordi_ramis | last post by:
Hi, I'm currently using image.fromfile to load jpg images in my application. I've noted that this procedure is very slow compared to some aplications I have seen. Is there any way to load a jpeg image into an image or bitmap object faster that image.fromfile?. Prefereably one method or component that is free. Thanks a lot for your help.
1
3816
by: dbagirltx | last post by:
We have done some testing with mixed and forgotten results. So I'm hoping that asking here can clarify some issues for us. Right now we do one weekly warm backup. Throughout the week there are multiple unrecoverable loads. We are tyring to come up with the best backup strategy for this system? It is a large dev data warehouse. What happens when a table is loaded unrecoverable and then we need to restore (no DDL has been done)? Can we...
11
3708
by: Chamnap | last post by:
Hello, I have several images that need to be loaded dynamically based on user interaction. Each image size is about 6000x1500 pixels. I see several sites they make the image blur, blur, blur, and the image become clear. I want to know how to do this, or maybe you all have other solutions better than this. Can anyone give me some suggestions and the way how to implement? Thanks
2
3733
elamberdor
by: elamberdor | last post by:
Hi All! Well, i'm modifying a dynamic map, with lat and long datapoints, my problem is it loads in text perfectly onto exact points I specify on the map, ..well now I want to load in icons(images) instead of text. (yes i'm being difficult) and i'd like the text to load into a static placeholder symbol instead. Problem is, I can get images to load in a separate file, text to load in a separate file, and text to appear in a static...
2
2794
by: Casey | last post by:
I'm doing some image processing that requires accessing the individual pixels of the image. I'm using PIL 1.1.6 and creating a 2D array of pixel RGB tuples using the Image class instance load() method. Unfortunately, I can't seem to find a reciprocal function that converts the 2D array of RGB tuples back to an image. I've gone through all of the online documentation and can't seem to find what should be an obvious solution. Any...
0
8413
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
8324
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
8842
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
8740
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
8513
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
8617
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...
0
4173
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...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.