on 12-02-2017 9:09 AM
Hi all,
I am trying to access multiple images along with its ID and description. These things combined together doesn't work.
while (rs.next()) {
var record = {};
record.id = rs.getString(1);
record.image = encodeURI(rs.getBlob(2));
//record.image = " \" " + $.util.codec.encodeBase64(rs.getBlob(2)) + " \" ";
record.textSize = rs.getString(3);
record.category = rs.getString(4);
output.results.push(record);
}
var body = JSON.stringify(output);
$.response.contentType = "application/json;charset=utf-8";
How can i get a response that is of mixed type ( Text + Image)
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.