Hi All,
response.write FilePath gives this path, ImageName.jpeg but the image(s)
doesn't display in the below code. What am I missing..? Cheers.
<%Response.Writ e FilePath%>
Original Image:<BR>
<IMG SRC="<%=Server. MapPath("ImageU ploads\") & FilePath%>"><P>
Thumbnail (50% reduction):<BR>
<IMG SRC="<%=Server. MapPath("ImageU ploads\Thumbs\T humb") & FilePath%>">
The files definitely exist in the database.
Mark Sargent.
Jul 19 '05
24 4684
" <img SRC="C:/Documents and Settings/wombat/My
Documents/easyboarder/wwwroot/Classifieds/ImageUploads/JPSnakeJBayPro( 28).jp
g"></p></div>
<p align="center"> Thumbnail (% reduction):<br>
<img SRC="C:\Documen ts and Settings\wombat \My
Documents\easyb oarder\wwwroot\ Classifieds\Ima geUploads\Thumb s\ThumbJPSnakeJ B
ayPro(28).jpg"> "
I've just been looking at the above
On the top one you've got the /, yet on the thumbnail's you've got \ ???
--
Regards
Steven Burn
Ur I.T. Mate Group CEO www.it-mate.co.uk
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Mark Sargent <do*********@ho tmail.com> wrote in message
news:OK******** *****@TK2MSFTNG P11.phx.gbl... This code below,
<%Response.Writ e FilePath & "<br>" ImagePath = Server.MapPath( "ImageUploa ds") & "/" & FilePath ImagePath = Replace(ImagePa th, "\", "/") Response.Write ImagePath & "<br>"%> Original Image:<BR>
<IMG SRC="<%=ImagePa th %>"></p></div> <P align="center"> Thumbnail (% reduction):<BR> <IMG SRC="<%=Server. MapPath("ImageU ploads\Thumbs\T humb") & FilePath%>"> <P align="center">
gives the source below, <html> <head> <title>easyboar der - Image Resize</title> </head> <body> <div align="center"> <p>$B!!(B</p> <p>$B!!(B</p> <p>$B!!(B</p> <p>$B!!(B</p> <p>$B!!(B</p>
<p>ImageUploa ds/JPSnakeJBayPro( 28).jpg<br>JPSn akeJBayPro(28). jpg<br>C:/Docum ents and Settings/wombat/My
Documents/easyboarder/wwwroot/Classifieds/ImageUploads/JPSnakeJBayPro( 28).jp g<br> Original Image:<br>
<img SRC="C:/Documents and Settings/wombat/My
Documents/easyboarder/wwwroot/Classifieds/ImageUploads/JPSnakeJBayPro( 28).jp g"></p></div> <p align="center"> Thumbnail (% reduction):<br> <img SRC="C:\Documen ts and Settings\wombat \My
Documents\easyb oarder\wwwroot\ Classifieds\Ima geUploads\Thumb s\ThumbJPSnakeJ B ayPro(28).jpg"> <p align="center"> </body> </html> cheersMark Sargent
yes, and neither display, eh..cheers...
Mark Sargent.
Hmmmm, K, I was testing with Mozilla Firebird, and they didn't display, but,
with IE6 they do...Hmmmmmm, that's PCs for ya...cheers..
Mark Sargent.
I could be wrong but, normally when displaying file's on your hard drive in
a browser, you use the file:// instr first. It's possible that, because
thats not there, Mozilla can't read it? (I know I'm probably way off on this
one but it's the only thing I can think of).
--
Regards
Steven Burn
Ur I.T. Mate Group CEO www.it-mate.co.uk
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Mark Sargent <do*********@ho tmail.com> wrote in message
news:Oy******** ******@TK2MSFTN GP12.phx.gbl... Hmmmm, K, I was testing with Mozilla Firebird, and they didn't display,
but, with IE6 they do...Hmmmmmm, that's PCs for ya...cheers..
Mark Sargent.
don't display in Opera either, eh..cheers...
Mark Sargent. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ian Davies |
last post by:
Hello
Im having problems displaying my images as thumbnails in a table. My code
for producing the new width and height from the original image is as follows
**************************************************
if ($ImagePath) {
//$Image = WEB_ROOT . 'images/PupilTester/' . $ImagePath;
$Image = 'images/PupilTester/' . $ImagePath;
} else {
$Image ='images/PupilTester/nopicture.bmp';
}
|
by: Woodmon |
last post by:
I'm observing issue with linked images not displaying in either Firefox
1.5b2 or IE6 when running on Win XP (they display fine in either browser
on W2k).
Example problem HTML is:
<a href="largepict.html" title="Blah" alt="Blah" target="_new">
<img src="images/smallpict.jpg" /></a>
For the image to display in either browser on XP I have to use the
|
by: Dalan |
last post by:
At first I was not certain what could cause Access 97 from displaying
most jpeg images, but not all. After further testing, it seemed that
all original images of less than 275 pixels per inch or less would
display, but those close to 300 pixels/inch or greater would not (MS
Access cannot recognize the file format xxx.jpg). The larger, original
images were scanned and saved as .bmp (at 300 dpi producing a 15MB
file). Then the images were...
|
by: david |
last post by:
Can I use WriteFile methods? It seems that it does not work.
For example, the following code only dispay one figure.
Response.WriteFile("images/image002.jpg")
Response.Write("<br><p>")
Response.WriteFile("images/image003.jpg")
Response.Write("<br><p>")
Any help?
Thanks
|
by: ABCL |
last post by:
Hi
I have asp.net web site that is working well on my m/c if I access
using http://
But I depyoed on production,It requiers to use https:// , If i browse
tha page using https://...and on login page it doesn't link images,
css and .js files on the login page. Once the user login successfully
and try to browse login page agian, The images and .js files are
working fine
what can be problem? how to solve it?
| |
by: gnewsgroup |
last post by:
I've googled and tried various approaches, but could not resolve this
problem. The article at MSDN: Displaying Images in a GridView Column
only presents a simple case where all data (including the images) of
the gridview come from a single table/datasource.
Here is my situation. In my web application, I need to display
customer bills info in a gridview.
Customer names and contact info are from the Customer table.
|
by: Aneesh Pulukkul[MCSD.Net] |
last post by:
Hi,
I have a HTML page and associated images. I need to send the HTML as
email -the email should also display the images at respective places.
So am sending the content of HTML file as MailMessage.Body and adding
all the referred images using MailMessage.Attachments.Add().
The images referred using <IMG SRC="Logo.png" /are displaying
properly in the email, but the image referred by <TABLE...
|
by: Tom |
last post by:
VS 2003/C#
Have a axWebBrowser control that will not render images.
Originally our app was just launching IE7 to display an HTML page. The
bitmap images were not displaying - path was correct and HTML was correct.
After converting images to JPG they started displaying OK in IE7. When we
embedded the HTML in the axWebBrowser control it reverted back to the
original behavior - no images.
Images (even bitmaps) rendered OK in...
|
by: Sonasang |
last post by:
Hi ,
I am creating a web page in ASP. I will place some images in the folder,
The images placed in the folder should be disaplayed. I am having the two button in the web page if I click next button then the next image should be dispalyed, If i click prev button then the prev image in the folder shd be displayed.The images are not static... its if today i hav 10 images afetr some time i amy hav 15 images....
Pls help me...
Thanks in...
|
by: =?Utf-8?B?UiBSZXllcw==?= |
last post by:
Hi!
This discussion may help other programmers get a better idea of how to save
uploaded images through a website.
Why? Well currently, I save 3 versions of every uploaded image on my own
little website:
1. Small: DOWNsize of original image to be used as a thumbnail.
2. Medium: DOWNsize of original image to be used as user avatars/icons in
forums or profiles.
|
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...
| |
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,...
|
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...
|
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,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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: 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...
| |