473,385 Members | 1,655 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,385 software developers and data experts.

How to get image source on local drive?

I'm trying to convert my website onto my CD drive (F:). Images are
giving me problems due to lack of knowledge for sure. My image url
looks like this ... file:///f:/ws_ftp/ode-cd/scripts/imagewrap.img?
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
and it doesn't work; ie. no picture shown on webpage in netscape 8.1.
Is the part 'picture.image.url=file:///f:/ws_ftp/' ... correct?

My URLs with this 'picture.image.url=../' ... seem to be the problem.
How to get this working right with javascript?
I have tried ...
picture.image.url=../image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
picture.image.url=f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
picture.image.url=file://f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0

and none work right... ideas?

Thanks,
Phil

Jan 31 '07 #1
3 7226
OptimalDesigns wrote:
I'm trying to convert my website onto my CD drive (F:). Images are
giving me problems due to lack of knowledge for sure. My image url
looks like this ... file:///f:/ws_ftp/ode-cd/scripts/imagewrap.img?
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
and it doesn't work; ie. no picture shown on webpage in netscape 8.1.
Is the part 'picture.image.url=file:///f:/ws_ftp/' ... correct?

My URLs with this 'picture.image.url=../' ... seem to be the problem.
How to get this working right with javascript?
I have tried ...
picture.image.url=../image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
picture.image.url=f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
picture.image.url=file://f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0

and none work right... ideas?

Thanks,
Phil
Hi Phil,

What is picture excactly refering to?
And also you syntax is invalid.

Do you have a image named:
corp-entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
??

I THINK you mean: (mind the first ?)
corp-entire_refinery.gif?picture.width.max=50&picture.h eight.max=0

I also wonder what you expect from the extra GET information (the stuff
after the image about max height), since you are getting an image, and not
calling a script, but maybe it is of some use in your situation. (Under
most circumstance it will be ignored completely.)

Regards,
Erwin Moller

Feb 1 '07 #2
Hi Erwin,
OptimalDesigns wrote:
I'm trying to convert my website onto my CD drive (F:). Images are
giving me problems due to lack of knowledge for sure. My image url
looks like this ... file:///f:/ws_ftp/ode-cd/scripts/imagewrap.img?
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
and it doesn't work; ie. no picture shown on webpage in netscape 8.1.
Is the part 'picture.image.url=file:///f:/ws_ftp/' ... correct?
Note ... this is a 2nd image.
Do you have a image named:
corp-entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
This is my 2nd image/picture in this <img srcstmt.
I THINK you mean: (mind the first ?)
corp-entire_refinery.gif?picture.width.max=50&picture.h eight.max=0
Nope.
I also wonder what you expect from the extra GET information (the stuff
after the image about max height), since you are getting an image, and not
calling a script, but maybe it is of some use in your situation. (Under
most circumstance it will be ignored completely.)
This WAS someone elses script ... I'm trying to get around it if
possible.
The 2nd URL is causing my problem and that may be due to the old
script. When I look at the image with my browser and click on
properties this is what I see.

Where possible I replace script with simple HTML code. Any
suggestions?

Thanks,
Phil
Erwin Moller
Feb 1 '07 #3
OptimalDesigns wrote:
Hi Erwin,
>OptimalDesigns wrote:
I'm trying to convert my website onto my CD drive (F:). Images are
giving me problems due to lack of knowledge for sure. My image url
looks like this ... file:///f:/ws_ftp/ode-cd/scripts/imagewrap.img?
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
and it doesn't work; ie. no picture shown on webpage in netscape 8.1.
Is the part 'picture.image.url=file:///f:/ws_ftp/' ... correct?
Note ... this is a 2nd image.
??
So what?

I asked you what picture was refering to. I still wonder.
>
>Do you have a image named:
corp-entire_refinery.gif&picture.width.max=50&picture.h eight.max=0
This is my 2nd image/picture in this <img srcstmt.
fine with me. :)
>
>I THINK you mean: (mind the first ?)
corp-entire_refinery.gif?picture.width.max=50&picture.h eight.max=0
Nope.
So what do you expect excactly from invalid syntax?
I am at a loss here.
Tip: You MIGHT consider writing whole sentences that explain what goes on in
your head if you expect usefull hints from us...
>
>I also wonder what you expect from the extra GET information (the stuff
after the image about max height), since you are getting an image, and
not calling a script, but maybe it is of some use in your situation.
(Under most circumstance it will be ignored completely.)
This WAS someone elses script ... I'm trying to get around it if
possible.
My suggestion would be to first understand the script, then fix its obvious
problems, like strange imagenames (ones that have & in them without a
preceding ?).

The 2nd URL is causing my problem and that may be due to the old
script.
You didn't really go lenthgs to tell us what is 'the old script' and what is
'the new script'.
Seriously, I doubt anyone can really follow you based on this information.

When I look at the image with my browser and click on
properties this is what I see.
WHAT do you see?
>
Where possible I replace script with simple HTML code. Any
suggestions?
Yes.
THIS is a valid imagesource:
file:////f:/ws_ftp/ode-cd/scripts/imagewrap.img

And this is not:
file:///f:/ws_ftp/ode-cd/scripts/imagewrap.img?
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.h eight.max=0

If you want to pass information using the ? at the end of the image, that is
ok, but make sure you understand what urlencoding is.
For example: the / is not valid in the way you use it after the ? (or a &).

Regards,
Erwin Moller
>
Thanks,
Phil
>Erwin Moller
Feb 2 '07 #4

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

Similar topics

3
by: coolsti | last post by:
I need some help here. I am making an application which allows a user to look at a series of picture files one at a time, and enter the outcome of various visual tests to a database. The...
7
by: Eric.Jones | last post by:
I've encountered a strange error with loading delimited files from a Samba (SMB) network drive, has anyone else seen this before? (Platform: WinXP Pro, UDB PE 8015, level 02060106, SAMPLE db) ...
1
by: D. Yates | last post by:
I can't seem to figure out why I can't StretchBlt an image that I have loaded from my hard drive. There are two button events below. The first button event, btnFormStretch_Click, works fine, but...
2
by: Paul Gorman | last post by:
I am using the control type = file to perform a file upload. When I click on the browse button to go select the image I want to upload it places in the text box a local path (C:\images\image.jpg...
6
by: Bruce | last post by:
Although I have quite a bit of WinForms experience, I am new to ASP.NET. So don't be surprised by the elementary question. :) I am creating a webpage with a dropdown list that allows the...
7
by: sonnystarks | last post by:
Page construction in progress: http://www.sdisplay.info/test/ Firefox does not recognize background image referred to on styles.css IE sees it with no problem. What is the problem? Thanx,
3
by: zion | last post by:
Hello, How can I return image link with webservice that I could see it in web page? The image is on my hard disk and <img src="c:\pictures\test.jpg" /does not work. If I use <img src=http://My...
70
by: quickcur | last post by:
hi can anyone explain me to read image to memory from a url it is very easy in java but it is hard to find an complete solution in c/c++. Thanks,
6
by: cmuraz | last post by:
helo all, i need to get image files from oracle database to local drive say "c:\photos" i dont know the procedure to do it. i want to know how to do it and in which format i ll get in the local...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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,...

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.