(data)
| 155 | |
| 156 | |
| 157 | def _dataIsImage(data): |
| 158 | data = "(" + data + ")" |
| 159 | |
| 160 | result = fb.evaluateExpressionValue("(id)[UIImage imageWithData:" + data + "]") |
| 161 | |
| 162 | if result.GetError() is not None and str(result.GetError()) != "success": |
| 163 | return False |
| 164 | else: |
| 165 | isImage = result.GetValueAsUnsigned() != 0 |
| 166 | return isImage |
| 167 | |
| 168 | |
| 169 | def _dataIsString(data): |