Hey Andrea, I've implemented a lot of API's into my system : http://theeasyapi.com and you can use the API's that I implemented if you want. Most of them are free anyway.
Ok, so getting back to your question. Most of the uploading type of API's take in a base64 encoded file. Then what will happen on your end is you base64_decode it and that's going to be your image then. It's really simple how that works and it can be send through XML rather easily. If you want to see an example of an API that does just that check out our implementation of Anything2PDF. They use a base64 scheme so you can see how you need to accept requested data. Either way, whenever you get this finished and if you want it open to the public I'll be more than happy to incorporate it into The Easy API. Take care, Chad On Mar 12, 6:18 pm, Andrea <[email protected]> wrote: > I found out that it's possibile with the "multipart/related" content > type. Does cakephp handle that content? > a.p. > > On 12 Mar, 20:36, Andrea <[email protected]> wrote: > > > Hi guys, > > Which is the best way to manage images in a xml restful way? If, for > > example, i want to provide to my users a rest api to upload images on > > my site, the binary data of the image should be inserted in the xml > > request as CDATA section or there is a better way of do it? > > Thanks. > > a.p. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
