Contact Us
  
 
 
    SearchSearch   RegisterRegister   Log inLog in 

Display images from client machine

Display images from client machine

 
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans
View previous topic :: View next topic  
Author Message
juniormember



Joined: 28 Jun 2008
Posts: 154

PostPosted: Tue Nov 25, 2008 12:01 pm    Post subject: Display images from client machine Reply with quote

Hi

We have two server one server is in main location and another server is client location. Our software J2EE application run at main location in tomcat web server. All documents images, PDF, doc (word file) are at client location. Client always change these images file and doc files. So can not upload to main location.
I want to display this images from client location to main location in <img tag

<img href="c:/images/ab.jpg"/> i do, it dont works
if i do
<img href="192.168.0.2/ab.jpg"/>
<img href="\\192.168.0.2/ab.jpg"/>
it still dont works
Back to top
View user's profile Send private message
hotjava



Joined: 25 Mar 2007
Posts: 14

PostPosted: Thu Nov 27, 2008 7:04 am    Post subject: Reply with quote

Hi
It is not possible to access client machine without having permissions.
You have to use FTP or web server to access image from client server.
images folder should be public and can be accessible by anyone easily.

I hope in client side apache or IIS web server is running and make a virtual directory where your client can share or update images.

Then you can access this public folder images at your server

like

Quote:
<img src="http://192.168.0.2/publicFolder/ab.jpg" border="0"/>


second FTP server
by FTP server you can also access images

Quote:
<img src="ftp://192.168.0.2/publicFolder/ab.jpg" border="0"/>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans All times are GMT
Page 1 of 1

 
Jump to:  
  Quick Post a Reply Topic
     
  Name (required)  
     
  Email Address (will not be published) (required)  
     
  Subject of topic (required)  
     
   
     
   
     
  Advertisement  
     
 
     


  More Links  
 
JSP Introduction
JSP Setup
Simple JSP Example
JSP Variable
Array Declaration in JSP
JSP Forms and User Input
Form Validation
JSP Cookies
JSP Session Object
Loop, content collection, iterator, conditional check in JSP
JSP Application Object
JSP Include
JSP Response Object
JSP Request Object
JSP Error Handling
JSP File Handling Object
JSP Action Tag
JSP Implicit Objects
JSP Declaration
JSP Directive
JDBC Introduction
JDBC Driver
JDBC Connection
JDBC Prepared/Statement
JDBC ResultSet
JDBC Close Connection object
JDBC Insert
JDBC Display Records
JDBC Update
JDBC Delete
JDBC Sorting
JDBC Query
JDBC Exception
JDBC Add Batch
JDBC Transaction/RollBack