Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Urgent: Important:  Image as responseText or responseXML in Ajax response

Posted on 2009-04-08
2
Medium Priority
?
576 Views
Last Modified: 2013-12-13
How to get image as responseText or responseXML in Ajax response?

I am using PHP to display image (using echo).

I need to get this image as a responseText or responseXML in the Ajax. How to display the image in the browser using Ajax?

Are there any approaches to have image payload in Ajax responseXML?

Ajax experts, please help me.
0
Comment
Question by:parumuga
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
Phatzer earned 1500 total points
ID: 24096383
I think you'd need to open the contents of the file, base64 decode it and send that to javascript, but im not sure about base64 decoding on the javascript end. I think that could be a solution though.
0
 

Author Closing Comment

by:parumuga
ID: 31567986
Solution was useful
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question