Dear members,

I am looking to attach an image to a Document.....

var xhr = Titanium.Network.createHTTPClient();
var url = 'http://128.27.160.65:5984/mc/'+timestampVariable;
xhr.open('PUT',url);
var jsonData = '{"longitude":"'+longitude+'", "latitude":"'+latitude+'"}';
xhr.send(jsonData);

Now I want to attach an image to this DocumentID (DocumentID in this case
is the timestampVariable) using xhr HTTPClient, now the thing is that I
need the Document RevisionID to do that. How can I retrieve the RevisionID
string of this documentID in a variable using xhr...?

Best Regards,


Reply via email to