473,761 Members | 9,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

borken imge.. at the first time..refresh the image.. ok

Hi there

I have one problem regarding broken image..
The problem is quite mystery..

It's happen to other user pc only (the page that we browse reside at
the same server)..not at my pc.. it never happen..
When other user go to the url. the face the broken image at the first
time
and need to refresh their browser .. in order to see the image..
this is the e.g of the code..

echo "<img src=\"http://image.net/image.asp?id=12 3\">";
for your information

I'm using php to code my site but for the image..
it located at ASP server.

I had diagnos this problem quite a long times..
first the server not down during viewing the image
second: I also try split the code just to print the image but.. the
image still broken...

any one can suggest.. what is the problem
Thanks.. in advance for sharing your ideas

regards
badz.

Jul 17 '05 #1
3 1799
badz wrote:
Hi there

I have one problem regarding broken image..
The problem is quite mystery..

It's happen to other user pc only (the page that we browse reside at
the same server)..not at my pc.. it never happen..
When other user go to the url. the face the broken image at the first
time
and need to refresh their browser .. in order to see the image..
this is the e.g of the code..

echo "<img src=\"http://image.net/image.asp?id=12 3\">";
for your information

I'm using php to code my site but for the image..
it located at ASP server.

I had diagnos this problem quite a long times..
first the server not down during viewing the image
second: I also try split the code just to print the image but.. the
image still broken...

any one can suggest.. what is the problem
Thanks.. in advance for sharing your ideas

regards
badz.

Hi,

Are you sending the right headers?
For example: if you return a png:
header("Content-type: image/png");

Some browsers accept images without the right headers, some not.

If that doesn't solve the problem, provide us with some code or at least an
URL.

Regards,
Erwin Moller
Jul 17 '05 #2
okies this site develop at intranet so .. url does not worth it to give
but i'll share some part of the code

for the right headers..
is it can be put in .. in the html pages which also contaiin text
because if we set the header to image it will not return the text.. if
i'm not mistaken..

okies this is the code.
echo "<img src=\"http://image.net/image.asp?id=12 3\">";

Jul 17 '05 #3
badz wrote:
okies this site develop at intranet so .. url does not worth it to give
but i'll share some part of the code

for the right headers..
is it can be put in .. in the html pages which also contaiin text
because if we set the header to image it will not return the text.. if
i'm not mistaken..

okies this is the code.
echo "<img src=\"http://image.net/image.asp?id=12 3\">";


Hi badz,

erm....
which code?
You didn't post any.

Ok: your script image.asp SHOULD START with giving the right header.
Please be aware that the image is just NAMED on the HTML-page, and the
browser fetches it when he encouters the img-tag.

The browser expects a decent response that starts with content-type=XXX

Regards,
Erwin Moller
Jul 17 '05 #4

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

Similar topics

9
4923
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST == "") { include ("InsertRecord.inc"); // Insert new record }
8
3220
by: ComputerSmith | last post by:
Hi all. I have programmed VB6 apps before, ones that use dropdown listboxes, text boxes, etc... normal stuff. I was asked by a friend to write a "simple" app that I am unsure how to proceed with. Any and all help is appreciated. 1) On start of the app, he wants a circle to appear in the middle of the screen. 2) Clicking the circle allows the user to type 2-3 words in (on?) the
1
1805
by: SeaPlusPlus | last post by:
I have a problem, with html and css that verifies, that my menus will not exhibit hover when the cursor is exactly to the left of the image centered on my web page. The problem shows up in Netscape, Firefox, and Opera but NOT in IE... arrrggghhh! ! ! ! I have a second problem with this impementation of HTML 4 strict. I'd like to know which elements in xbasic.css should I hide (using @import) from Netscape 4 so the page will degrade...
6
8819
by: Arnold | last post by:
Hey there, I've browsed for some fixes to this but only found a couple of similar posts, which didn't solve my problem. I'm wondering how to refresh an image control in a form after a user clicks a cmd button to open the Windows API Common Dialog and selects a new file (jpeg). Images are initially loaded in the form's oncurrent event. I've tried using me.dirty = false to make the form current. Has anyone experienced this before?
7
5937
by: utkarsh | last post by:
Hi, I am using the following code to the update a section of the image which is drawn on a panel. this.m_Timer = new System.Windows.Forms.Timer(this.components); this.m_Timer.Tick += new System.EventHandler(this.m_Timer_Tick); this.m_Timer.Enalbled = true;
2
2723
by: Just D. | last post by:
All, How should we refresh the current aspx frame? I disabled caching using this command on Page_Load(): Response.Cache.SetCacheability(HttpCacheability.NoCache); but it didn't help. The problem is that this page shows the client Logo image, then asks to upload a new one if required, finally it should show the uploaded picture. The problem is that it doesn't. If I press F5, then I can see the updated
10
23419
by: Fred Nelson | last post by:
Hi: I have a VB.NET web application and I need to find a way to cause a page refresh from within my application. Does anyone know how to force the browser to refresh the current page? Thanks very much for your help! Fred
11
5671
by: Jerry J | last post by:
How can I get an asp:Image to refresh when a user uploads a different jpg. I disabled caching using this command on Page_Load(): Response.Cache.SetCacheability(HttpCacheability.No Cache); but it didn't help. The problem is that this page does not change images after a client uploads a new one. If I hit the browser's refresh, then I can see the updated image, but if I don't refresh, then I see the previous image.
0
9554
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
10136
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
9988
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
9923
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
9811
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
7358
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
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3911
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
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.