Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How do I display a file c:\MYDIR\A.jpg ?

Reply
Thread Tools

How do I display a file c:\MYDIR\A.jpg ?

 
 
PHPBABY3
Guest
Posts: n/a
 
      05-03-2008
How do I display a file c:\MYDIR\A.jpg ?

These don't work:

<img src="c:\MYDIR\A.jpg">

<img src="c:/MYDIR/A.jpg">

<img src="c:MYDIR\A.jpg">

<img src="c:MYDIR/A.jpg">


P -
 
Reply With Quote
 
 
 
 
PHPBABY3
Guest
Posts: n/a
 
      05-03-2008
On May 3, 5:12*pm, SAZ <(E-Mail Removed)> wrote:
> In article <2d4f9806-ee3d-46d3-9fb9-6a4316dcc933
> @m45g2000hsb.googlegroups.com>, (E-Mail Removed) says...
>
> > How do I display a file c:\MYDIR\A.jpg ?

>
> > These don't work:

>
> > <img src="c:\MYDIR\A.jpg">

>
> > <img src="c:/MYDIR/A.jpg">

>
> > <img src="c:MYDIR\A.jpg">

>
> > <img src="c:MYDIR/A.jpg">

>
> > P -

>
> Do you mean you are trying to build a web page, post it, and grab an
> image from your personal computer to display on the site? *If so, you
> must upload the image to the site and correct the path to the image.


The user identifies a bunch of JPG files on their computer. My
program takes them and displays them all on one page. How?



 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      05-03-2008
PHPBABY3 wrote:
> On May 3, 5:12 pm, SAZ <(E-Mail Removed)> wrote:
>> In article <2d4f9806-ee3d-46d3-9fb9-6a4316dcc933
>> @m45g2000hsb.googlegroups.com>, (E-Mail Removed) says...
>>
>>> How do I display a file c:\MYDIR\A.jpg ?
>>> These don't work:
>>> <img src="c:\MYDIR\A.jpg">
>>> <img src="c:/MYDIR/A.jpg">
>>> <img src="c:MYDIR\A.jpg">
>>> <img src="c:MYDIR/A.jpg">
>>> P -

>> Do you mean you are trying to build a web page, post it, and grab an
>> image from your personal computer to display on the site? If so, you
>> must upload the image to the site and correct the path to the image.

>
> The user identifies a bunch of JPG files on their computer. My
> program takes them and displays them all on one page. How?


If the webpage is in "c:\MYDIR" then just put <img src="A.jpg"... else
you have to use relative paths, remember for webpage path separators are "/"

so for:

HTMLfolder
HTMLfolder/IMGfolder

<img src="IMGfolder/A.jpg">

or for

SomeFolder/HTMLfolder
SomeFolder/IMGfolder

<img src="../IMGfolder/A.jpg">

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Adrienne Boswell
Guest
Posts: n/a
 
      05-04-2008
Gazing into my crystal ball I observed PHPBABY3 <(E-Mail Removed)>
writing in news:a40690e3-8920-43af-82b9-
http://www.velocityreviews.com/forums/(E-Mail Removed):

>>
>> Do you mean you are trying to build a web page, post it, and grab an
>> image from your personal computer to display on the site? ˙If so, you
>> must upload the image to the site and correct the path to the image.

>
> The user identifies a bunch of JPG files on their computer. My
> program takes them and displays them all on one page. How?
>


You will have to use some kind of upload script on your page to get the
images and save them to your server. If you are thinking of putting the
images into a database, I would highly recommend you do not do so --
only store the path to the image in the db.

Once you have the images on your server, simply use the path to the
images on your server.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 
Reply With Quote
 
faerber.jan@gmail.com
Guest
Posts: n/a
 
      05-04-2008

> The user identifies a bunch of JPG files on their computer. *My
> program takes them and displays them all on one page. *How?


So come on - if you can write a program like ICQ personal Web server
you should know what to do.

Jan

 
Reply With Quote
 
PHPBABY3
Guest
Posts: n/a
 
      05-04-2008
On May 4, 4:22*pm, (E-Mail Removed) wrote:
> > The user identifies a bunch of JPG files on their computer. *My
> > program takes them and displays them all on one page. *How?

>
> So come on - if you can write a program like ICQ personal Web server
> you should know what to do.
>
> Jan


Ok for the lesson in logic. Now how do I do what I want to do?

P -
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      05-05-2008
frank wrote:
> On Sat, 03 May 2008 14:04:41 -0700, PHPBABY3 wrote:
>
>> How do I display a file c:\MYDIR\A.jpg ?
>>
>> These don't work:
>>
>> <img src="c:\MYDIR\A.jpg">
>>
>> <img src="c:/MYDIR/A.jpg">
>>
>> <img src="c:MYDIR\A.jpg">
>>
>> <img src="c:MYDIR/A.jpg">
>>
>>
>> P -

>
> decided to write it up.
> ..................
> <html>
> <head><title>The Window</title>
> <script type='text/javascript' language='javascript'>
> var newwindow;
> function poptastic(url)
> {
> newwindow=window.open(url,'name','height=400,width =200');
> if (window.focus) {newwindow.focus()}
> }
> </script>
> </head>
> <body>
> This links to a window<p>
> <a href="javascriptoptastic('c:/myFile/whatever.html');">the literal</a>


Don't expect that to work in Firefox. The above is bad in so many ways...

To OP is is unclear of what you wish. Is this an HTML page on a local
system to display images also on the local system or are your trying to
display images from a local system in a web page online?

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      05-05-2008
SAZ wrote:

> But still, the OP has not yet answered the first question:
>
> Do you mean you are trying to build a web page, post it, and grab an
> image from your personal computer to display on the site?


Been asking too. Not sure OP knows at all what (s)he is doing. Trying to
guess is just a waste of time.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
richard
Guest
Posts: n/a
 
      05-06-2008
On Sun, 04 May 2008 18:54:51 -0500, frank <(E-Mail Removed)>
wrote:

>On Sat, 03 May 2008 14:04:41 -0700, PHPBABY3 wrote:
>
>> How do I display a file c:\MYDIR\A.jpg ?
>>
>> These don't work:
>>
>> <img src="c:\MYDIR\A.jpg">
>>
>> <img src="c:/MYDIR/A.jpg">
>>
>> <img src="c:MYDIR\A.jpg">
>>
>> <img src="c:MYDIR/A.jpg">
>>
>>
>> P -

>
>I think what you really want is a link to a javascript that generates a
>window that contains the specific image. Google javascript + windows.
>These will provide scripts that will generate a window that can
>- by virtue of the javascript - size the window to a specific size and
>appear in a specific location. This window can contain the img
>tag detail that will display the image.
>
>A decent tutorial on this is :
>
>http://www.howtocreate.co.uk/tutoria.../browserwindow
>
>Go to it!


Totlaly frickin wrong!
He has the wright approach.
 
Reply With Quote
 
richard
Guest
Posts: n/a
 
      05-06-2008
On Sat, 3 May 2008 14:04:41 -0700 (PDT), PHPBABY3
<(E-Mail Removed)> wrote:

>How do I display a file c:\MYDIR\A.jpg ?
>
>These don't work:
>
><img src="c:\MYDIR\A.jpg">
>
><img src="c:/MYDIR/A.jpg">
>
><img src="c:MYDIR\A.jpg">
>
><img src="c:MYDIR/A.jpg">
>
>
>P -



<img src="MYDIR/A.jpg">

Assuming that the host file is in the same directory as "MYDIR".

You do not need the "C:" unless the src file is in another drive.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Display byte array back to pdf and display in IE SG Java 6 01-15-2008 01:02 PM
choosing to display or not to display a checkbox in repeater control. Imran Aziz ASP .Net 4 08-11-2005 05:00 PM
Double double display display problem problem Tom Accuosti Firefox 3 09-27-2004 10:02 PM
Display and display model Marc Twain Java 1 01-13-2004 07:05 PM



Advertisments