How to send an Image to a Drupal Services 3 endpoint using json

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
stilllife00's picture

Hi all!
I'm having a trouble during a simple Android application development. I'm trying to add a simple News on my Drupal site from the Android application. I created a new content type called "News" with 2 strings (title and body) and a Image field. I sent to my site a title and a body and it works correctly using JSONObject class.
The problem now is to send an Image. i have tried to convert the image in raw bytes and encript that with Base64 but I can't understand how Drupal receive a field of type Image (instead of a simple string like a title or a body). So, sending with JSON raw bytes did not work.

Can anyone help me? Thanks

Comments

maybe I have explained bad?

stilllife00's picture

maybe I have explained bad? someone could tell me a good reference for services 3.0 that describes how to correctly use node/create with particular fields like Image(s) ? I've searched a lot but without results.

Thanks

Connecting drupal with android

myvindra's picture

hi I'm very new to Drupal, now i'm developing Android(in eclipse - java) applicationg which already having in website created using cms-Drupal 6, I downloaded services modules erxtracrted and placed in the modules folder. after i enabled the servers and services i could see only services, when u click on it Name, Server, path ro endpoint Authontication (session authontication) only apearing, but i want to get 'key' and where can i get it? pls help

myindra

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: