Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-17-2010, 11:27 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Location: Apple Valley, CA
Posts: 2
Hairy Baldman is on a distinguished road
Question Photo/PHP Upload Help Needed

I am a webmaster working with an app developer to capture data from an app and upload it to our webserver. I have successfully been able to receive data ie. string variables and process them into a MySQL database via a PHP script page on our webserver. I am having difficulty figuring out how to process the attached jpg accompanying the data. I have managed to insert it as a LONGBLOB into the database, but have not been able to read it afterward. Has anyone successfully processed an incoming photo without the use of a submission form in PHP? How have other app developers handled the posting of images to a web server from within an app? Should the app developer be using the MFMailComposer class instead and sending the image and data via e-mail? Thanks in advance for any assistance or advice you can provide.
Hairy Baldman is offline   Reply With Quote
Old 08-18-2010, 02:37 AM   #2 (permalink)
Registered Member
 
msencenb's Avatar
 
Join Date: May 2009
Location: Stanford, CA
Posts: 291
msencenb is on a distinguished road
Default

The only that could be going wrong from an iphone dev perspective is if the images are not being encoded correctly when passed to your server. Do you know if the image data is correct after its been uploaded?

As far as php things this community might be a little blank for information but I dug this up (didn't read much beyond the title but hope it helps.. dev shed is great for php)

Displaying image stored in BLOB - Dev Shed
__________________
I'm starting a new blog dedicated to iOS development. Check it out at:

http://www.iosdevscreencasts.com
msencenb is offline   Reply With Quote
Old 08-18-2010, 09:32 AM   #3 (permalink)
Registered Member
 
Join Date: Aug 2010
Location: Apple Valley, CA
Posts: 2
Hairy Baldman is on a distinguished road
Default

Thanks for taking the time to reply and supplying the link. I will try to move forward with a solution. I am still curious as to how iPhone App developers are moving photos from the device to a webserver.
Hairy Baldman is offline   Reply With Quote
Reply

Bookmarks

Tags
photo, php, upload

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 349
5 members and 344 guests
freewind, givensur, lendo, Newbie123, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,894
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:53 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0