473,405 Members | 2,171 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,405 software developers and data experts.

Problems with gifs

I have some code where I am trying display either jpgs or gifs.

They are going an image tag:

<img src="" id="PictureDisplay" alt="" />

This displayed fine under VS 2003 but when I moved this over to VS 2005, it
doesn't seem to handle gif, but jpgs work fine.

If I have the img tag set to:

<img src="c:\uploads\logo.jpg" id="PictureDisplay" alt="" />

it works fine.

If I have it set to:

<img src="c:\uploads\logo.gif" id="PictureDisplay" alt="" />

it doesn't.

I had originally just went into Paint Shop Pro, changed it to a jpg and then
it worked fine.

Why the problem?

Thanks,

Tom


Feb 15 '08 #1
2 1167
tshad wrote on 15-2-2008 :
I have some code where I am trying display either jpgs or gifs.

They are going an image tag:

<img src="" id="PictureDisplay" alt="" />

This displayed fine under VS 2003 but when I moved this over to VS 2005, it
doesn't seem to handle gif, but jpgs work fine.

If I have the img tag set to:

<img src="c:\uploads\logo.jpg" id="PictureDisplay" alt="" />

it works fine.

If I have it set to:

<img src="c:\uploads\logo.gif" id="PictureDisplay" alt="" />

it doesn't.

I had originally just went into Paint Shop Pro, changed it to a jpg and then
it worked fine.

Why the problem?

Thanks,

Tom
Not sure why a .gif would fail (both files *do* exist there, don't
thay?) but a remark about your src attribute:
a src of "C:\..." will only work on your development box and not when
you deploy to a server. The browser will look into it's *local* C:\
path for that image and probaly fail (personally I don't have a
C:\uploads directory ...).
You need to have a http:// path in there (but it might be a relative
path). The file needs to be served via the webserver (and be in a path
that can be accessed by that server)

Hans Kesting
Feb 15 '08 #2
Long shot but have you tried;

<img src="file://c:\uploads\logo.gif" id="PictureDisplay" alt="" />

And could you define "doesn't work"?

"tshad" <tf*@dslextreme.comwrote in message
news:Oi**************@TK2MSFTNGP05.phx.gbl...
>I have some code where I am trying display either jpgs or gifs.

They are going an image tag:

<img src="" id="PictureDisplay" alt="" />

This displayed fine under VS 2003 but when I moved this over to VS 2005,
it doesn't seem to handle gif, but jpgs work fine.

If I have the img tag set to:

<img src="c:\uploads\logo.jpg" id="PictureDisplay" alt="" />

it works fine.

If I have it set to:

<img src="c:\uploads\logo.gif" id="PictureDisplay" alt="" />

it doesn't.

I had originally just went into Paint Shop Pro, changed it to a jpg and
then it worked fine.

Why the problem?

Thanks,

Tom



Feb 15 '08 #3

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

Similar topics

0
by: jerrygarciuh | last post by:
Hello everyone, Wondering if anyone else has had problems with gifs created by php or if anyone sees a problem with this code. Symptom: created jpegs work fine and created gifs work fine in...
3
by: jerrygarciuh | last post by:
Hello everyone, Wondering if anyone else has had problems with gifs created by php or if anyone sees a problem with this code. Symptom: created jpegs work fine and created gifs work fine...
4
by: tnhoe | last post by:
Hi, how do i code such that all gifs are loaded without missing any one of them ? I always get missing few gifs when the page loading with 30 gifs. I use IE6 to browse many <a...
0
by: GrandpaB | last post by:
I am creating a small simulation in VB and wish to incorporate several animated GIFS. I can load the GIFS from the hard drive into a picture box and they animate, but I have two questions. 1.)...
2
by: Scirious | last post by:
People, I need a way to detect the moment an animated GIF gets to it's end to switch to a different GIF. I can't use a Timer because the GIFs have different times and doing so (as I'm doing at the...
13
by: Ikke | last post by:
Hi everybody, I've downloaded a design from www.oswd.org and have started rewriting the css and html to end up with a new design for my site. So far so good, but there are a few problems I...
3
by: ZikO | last post by:
Hi. I am making a Multimedia Presentation in VB.NET 2005 and I have some animated GIFs which I need to use. I tried to use PictureBox for it but it doesn't play an animation in GIFs :/. What I...
4
by: Jeff | last post by:
Hi, I'd like to write Javascript that stops animated gifs from animating. On Firefox, at least, window.stop(); does the trick, although it stops everything on the page and is kind of...
0
by: helraizer1 | last post by:
Hey, I have a PHP script that I made for an image based shoutbox with emoticons. The problem is that php GD doesn't support animated gifs, yet perl GD does. How would I make it so that I could...
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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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,...
0
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...

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.