Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

iOS and MacOS / Memory <-> Server/Http Post Server with PHP MySQL <-> BLOB

Author
Message
xGEKKOx
AGK Master
13
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 19th May 2012 21:25 Edited at: 19th May 2012 21:47
What you need to start to use this is :
- NSDataAddictions that you can find easily on google.
Is a special NSDataAddictions with MD5 and BASE64 encoding for this purpose.
Insert the .h and .m files into your project and #import it in the UntitledViewController (as i use 1 View for all, or in the View you need it).
- Function getStringFromWChar

PHP:


OBJ C++


I hope this can help!

iPhone/iPad Games/Apps : Street Karate Fighter - 90s VideoPokers Simulator - Ball VS Brick - CB RadioBox - Artic
bjadams
AGK Backer
14
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 19th May 2012 23:34
How do you pass the UIImage to agk::LoadImage() ?
xGEKKOx
AGK Master
13
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 20th May 2012 02:07 Edited at: 20th May 2012 02:10
Why you need to do it?

So you wanna use this image as Sprite?
Or you just wanna show this image?

Let me understand better

iPhone/iPad Games/Apps : Street Karate Fighter - 90s VideoPokers Simulator - Ball VS Brick - CB RadioBox - Artic
bjadams
AGK Backer
14
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 20th May 2012 16:00
yes i want to load an image from a database via php and use it as an AppGameKit sprite.

i thought that you managed to do that , that's why I asked to see how passing image data natively from ios sdk to agk works
xGEKKOx
AGK Master
13
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 21st May 2012 02:29
No in this way no.
To do this we need to write in the bundle and...


But i need to investigate on how to save in the bundle, so you can use AGK::LoadImage.

iPhone/iPad Games/Apps : Street Karate Fighter - 90s VideoPokers Simulator - Ball VS Brick - CB RadioBox - Artic
bjadams
AGK Backer
14
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 21st May 2012 14:07
Saving temporary files is a big NO NO for me. sorry

Login to post a reply

Server time is: 2022-10-04 14:29:16
Your offset time is: 2022-10-04 14:29:16