Aus dem Blob-Feld in der Datenbank abgerufene Daten
ringa_lee
ringa_lee 2017-05-16 13:19:31
0
2
1127

Die aus dem Blob-Feld in der Datenbank erhaltenen Daten sind Daten,

{7920b7e8 1743de9c afdd9cd9 90ccf3d3 79d916ec 69d80278 72fd3495 cdb4e19c 0f813a57 dded5db4 f1907cd7 996d14be 9d090f3d b4ce1020 142 ab0b8 1e571111 6f02f840 1935403a 13369916 c470692f cfea04c6 eb269dba 5a647911 cdfc9553 9da0942d 6bdbe4e2 e4dca09d 13f7ec98 e7e9fe76 d11697 f3 70d5a2ab 80b65839 c180d964 5b0c3d28 e0684c4e 11e92f37 5f9ed5b9 a829cd60 ea19323f bafadd50 e61488e7 f8a76df1 c4c1e293 0dc3e8e6 99a6f9ae 3b28d755 f795de49 3b8c3b04 9dd4b96c 4453ad73 8f6988fa 6ac0f5c0 23c4855b 1414305d bfc28999 a584f5e1 7f307669 6b1b6857 d11f3081 22a061a7. 918 8ff0b 0406a581 732 d7894 ecd032dc 19518a90 ecd58d16 d8b5df98 2d007730 ee4c3c37 1adb1e1b fd4b8002 0a0dd947 1f13510c d29bd613 fe7c6759 500fe771 d53fb4f5 5 ea0853e 0ff2794b 919d0a9f 9708dd44 e824de1c 07fbe90d a3708ea4 00fb7de5 8e43771a ba5c1c28 d967b944 69e740c9 92dad582 bb739644 09c30799 71 13bda5 4A567DFA 6E059FC0 1D245D9A 6428BBBE D9B18052 FF93D1F7 C4AB8C45 6C8E066F C96F6EE4 B0291D5A 7A3D7CBCBCB3999999999999999999999999999999999999999999109 6C06 9D5AE2CD 2B786A2E A08BF8D4 9BA25B3E EE28FDC7 35333A9D 447B35D7 0774777777A 1AA26D21 C36D64EF EA42569F 64C9EB61 5D625987

Ich verwende NSString *result = [[NSString alloc] initWithData:data binding:NSUTF8StringEncoding]; das Ergebnis ist leer, ich weiß nicht, was los ist, bitte helfen Sie.

ringa_lee
ringa_lee

ringa_lee

Antworte allen(2)
滿天的星座

你的blob数据源是什么啊,也就是你的data是由什么转成的啊,图片?字符串? 什么格式的数据转成的就直接转成什么数据啊,如果本来就不是字符串那肯定就不能转成字符串了啊

伊谢尔伦

根据这个:

sqlite3 insert and read BLOB data in database

int len = sqlite3_column_bytes(statement, 0);
NSData *data = [[NSData alloc] initWithBytes: sqlite3_column_blob(statement, 0) length: len];
NSString *result = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];

How to retrieve string from NSData stored in sqlite?

const void *bytes = sqlite3_column_blob(statement, 6);
int length = sqlite3_column_bytes(statement, 6);
NSData *myData = [[NSData alloc] initWithBytes:bytes length:length];
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage