Path: csiph.com!aioe.org!.POSTED!not-for-mail From: Herbert Kleebauer Newsgroups: comp.lang.javascript Subject: Re: Read binary file Date: Thu, 17 Mar 2016 08:31:50 +0100 Organization: Aioe.org NNTP Server Lines: 57 Message-ID: References: <145821661.4prVZSFEgG@PointedEars.de> NNTP-Posting-Host: eiWAGHWzYgT9obq29hja2A.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.javascript:30028 On 17.03.2016 01:04, Thomas 'PointedEars' Lahn wrote: > Herbert Kleebauer wrote: > >> There is a picture (1.jpg) on web server A and I want to make >> a modified version available using a web server B. Because >> of copyright I can't just copy the picture, modify it and >> store it on server B. Instead a html file (test.htm) and >> a data file which describes how the picture has to be >> modified (diff.dat) is stored on server B. When a user >> loads the html file into his browsers, the javascript code >> loads the original picture from server A and the modification >> file from server B, changes the picture and displays it. > > Your logic is flawed. Either there it is a copyright violation to create a > modified version of the original, or there is not. If there is a copyright > violation, then no matter how you create the modified version, the issue > remains: publishing the modified version would be a copyright violation. You didn't understand the scenario. Server B only provides the information where to find the original picture and how to modify it. Server B never downloads a version of the picture nor stores a modified version of it. It is the web user on his own PC who downloads this information and the original picture and does the modification on-the-fly (no version of the modified picture is written to the hard disk on the users PC). Suppose the Server B provides this information: "download the picture http://ikomi.de/test/1.jpg and increase brightness by 10% and decrease contrast by 5%". Why does this violate any copyright? Instead I could provide a batch script on Server B, which, when executed on the users PC, will use wget to download the picture and then use a scriptable image editor (like ImageMagicks convert.exe) to do the modification. But it would be much simpler to just use a web browser. >> I'm not familiar with javascript, > > There is no javascript. ??????????? >> or in which other way can I read a binary file from a different >> web server into a javascript array. > > I know how (it is actually trivial if you think it through), I'm not even sure what the problem is. Does the browser refuse to read data from a different server than the html file was read for security reasons or does server A refuse to deliver the picture because of a referer header.