Re: How to display JPG files that are stored on the user's computer?



PHPBABY3 wrote:
And I'll be able to invoke the functionality from PHP? The entire
application is written in PHP.

You don't seem to understand what is the difference between server and client side programing or what are the browser limitations. It's essential knowledge.

1. Your PHP written application runs of the *server*, in internet realm, that is *different machine* to client. Client machine *don't see* your PHP code, and even if it would see it, it *wouldn't understand* it.
All what client machine does for you, is requesting and accepting XML/HTML files and then displaying them. It also gets the resources that are linked in those files. Browsers can interpret some of those files.

2. For security reasons, it was set long time ago, that the browser *will not send* any user data (including memmory or file system) to the server. It will *not even access* such resources. Browser programmers put a lot of effort, to *block* any attempts to access file system or memory.
Granted, there where and probably still are some holes, but those are
marked as critical bugs and *fixed* fast.

As for the question alone,
if you embed the Java application in html, the browser can ask user about permission to access his file system, if the user agrees, then the Java should be able to do what you need. But you really *should* redirect such questions to *Java* related newsgroup.

best regards
Piotr N
.



Relevant Pages

  • Re: Asynchronous socket programming vs. remoting
    ... You are the first person that said I should use sockets. ... them quicker than I can load them from my harddrive using the file system. ... It scales nice too - I tried throwing 400 requests at the server in a span ... > do not need the same assembly on the client and server. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Pure client-side javscript database?
    ... the individual asking the question in their single context. ... in the current browser instance and a respondent assumes the question ... >>> that the client may download an application from a server ... >>> server, but the APPLICATION may or may not be. ...
    (comp.lang.javascript)
  • Another option (was Re: AJAJS - thin client web app using mainly XMLHTTPRequest and eval())
    ... running on the client. ... but is a Web-Server really an Application Server?) ... Password Caching or generic Work-Station or Browser ... Predictive text on the Queue Name field so that all matching VMS queues ...
    (comp.lang.javascript)
  • Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
    ... complicate means that there are some hundred thousand code lines ... via web services to the win appication on the server. ... featured application (say thick client) which does a lot of complicate ... to deliver to the IE user, creating a smart client within its browser. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
    ... I would like to see * only IE * on the client side and a full ... application on the server side. ... Public Shared Sub MainAs String) ... browser and program so that you can leave all the client server ...
    (microsoft.public.dotnet.framework.aspnet)