|
-
Jun 16th, 2006, 05:22 AM
#1
Thread Starter
Addicted Member
Display an image from a file on the server
Hi
I'm having problems displaying an image.jpg from a file on the server. When I test the web app locally in vb.net it displays ok but when I upload to the server the image is blank
Here is the code:-
PersonalPicture.ImageUrl = "file:///" & objAppSettings.Item("Image Source") & "\" & Session("EmployeeID").replace(".", "") & "ResizedPicture.jpg"
Where objappsettings.item("Image Source) = "e:\appname\images"
Any thought much appreciated
Regards
Barry
-
Jun 16th, 2006, 03:02 PM
#2
Re: Display an image from a file on the server
Do a server.mappath on that location, because it's pointing to a location on the server's hard drive, the image obviously doesn't exist on the user's machine.
-
Jun 17th, 2006, 02:31 AM
#3
Thread Starter
Addicted Member
Re: Display an image from a file on the server
Thanks for that BUT:-
When I FTP to the sight I can see the file and I also open a dadabase .mbd file using almost the same path.
Regards
Barry
-
Jun 18th, 2006, 09:39 AM
#4
Re: Display an image from a file on the server
That's FTP. It has nothing to do with how web pages and images are displayed on the web page.
-
Jun 18th, 2006, 12:48 PM
#5
Thread Starter
Addicted Member
Re: Display an image from a file on the server
Please forgive my ignorance.
The image file is held in a folder such as D:\data\image. What ever I try I can't get it to display. I can open and resize the image and create the resiized image in the same folder but I can't get it to display.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|