Why would you want to do that? You can't really do much with image data returned from an Ajax response.
Anubh Jain
Ranch Hand
Joined: Apr 09, 2012
Posts: 34
posted
0
Well, seems I have to go through basic tutorials once again..
I would explain a little about my aim over here..
When my client starts, I want to download a image on my local memory from server along with other details as schedule for when the image is to be displayed.....
When the time given in schedule comes, it should display the image automatically.
Anubh Jain wrote:I hope I have made it a little clear this time!!!
Not really because you are not using standard terms.
When my client starts
What do you mean by this? What is "your client"? Are you writing a client program? Or do you just mean when you open the web page in a browser?
I want to download a image on my local memory
What is "local memory"? Do you mean your computer?
When the time given in schedule comes, it should display the image automatically.
How? In the browser? What if the user is watching YouTube videos at the time?
Anubh Jain
Ranch Hand
Joined: Apr 09, 2012
Posts: 34
posted
0
Let me just stick to my problem....
I have a URL of an image.
How do i download the image on my local memory(my PC) using XMLHTTPREQUEST?
That would fix my issue.
Anubh Jain
Ranch Hand
Joined: Apr 09, 2012
Posts: 34
posted
0
Lets say I have coded:
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
Before you go any further, you really need to consider these two responses you already got:
Tim Moores wrote:What does XMLHTTPREQUEST have to do with that? You would create an IMG tag in the page and points its SRC attribute to the image - done.
Bear Bibeault wrote:Why would you want to do that? You can't really do much with image data returned from an Ajax response.
Anubh Jain
Ranch Hand
Joined: Apr 09, 2012
Posts: 34
posted
0
Ok..lets get it this way....
I have an emulator ...which is switched on for all time......
The emulator will connect to server once a day and will download the schedule and data(image/video) to be played at that schedule.
I have downloaded the schedule...but I am unable to download the data(image/video). How do I download this...
I went through the link above.....but still I was unable to find what I needed.
How do I write binary data received from server in a file on my local Harddisk?
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
Not following. You asked about loading images into a web page for the purpose of showing them later; that's what the article is about.
As has been mentioned before, a web page can't download content on its own to the user's disk without the user getting involved, and that's a good thing.
I'm getting the impression, though, the the client you're talking is not really a browser...? In that case you should tell us what kind of client, exactly, this is.
Anubh Jain
Ranch Hand
Joined: Apr 09, 2012
Posts: 34
posted
0
Ya..it is not a browser....
It is a TV SDK....
Is it possible to call a function of some other language (c/c++/java or any other porogramming language which can download the image) from javascript?