×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to extract data from an object???

How to extract data from an object???

How to extract data from an object???

(OP)
I'm trying to implement some js code that dynamically resize a referenced/uploaded image and then send the result via an ajax call to a host program.
The host program receives the information in the $_POST array and the element in question is the $_POST[photo_name] => data:
and I just cannot seem to extract anything for writing/storing as a file.
Hopefully some of you php gurus are familiar with this process and can shed some light on the process?
Thanks for any guidance anyone can provide.
ponder

RE: How to extract data from an object???

How are you sending the data in POST?

What exactly is your Js code doing to get the image data in the POST array?

What happens if you do a var_dump of the $_POST['data'] variable?

You really need to provide more details about what you are doing before anyone can venture any sort of guess.

----------------------------------
Phil AKA Vacunita
----------------------------------
OS-ception: Running Linux on a Virtual Machine in Windows which itself is running in a Virtual Machine on Mac OSx.

Web & Tech

RE: How to extract data from an object???

Check this out

https://gist.github.com/miguelxt/908143

There are many classes out there that do this - Just look at them, try to understand how they fit your need and choose one that works for you.

Now, that leaves the "how to call upon it" ...

You mentioned "referenced/uploaded" image; this is where I would look into where I can inject the use of chosen class.

--
SouthBeach
http://www.fp2php.com
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close