请问如何将图片路径保存到数据库中?

我在建立一个记事本app,使用的是ormlite数据库,我有一个疑问就是,我里面用到了自定义view,是edittext和textview,在一个页面可以在随机位置添加文字和图片,那么我要怎么获取这些图片的路径存放到一张表的string那个属性中呢,文字也是分段的,也就是应该怎么将整个页面的状态进行保存呢?

LexieMIZUKI
浏览 1496回答 0
0回答

慕神7151204

RTPZBXUWMMHBSWLBRAZUXHYNRACWKULOEIKARZQGDLIQYHVXHXZPXMIQYBYGDSOBJSOKAJSGIDGBLHJTBKZBROXFDZZHXGJMBXMNCFOQACFUGPXZHRGKTLTILUIYHDGWVYORHEBQFBDGCFPYRMJLIEHEZODUQNIMIEOEHXZVLHCAPLOYVDYAKSVSILBDNFUQZPYOKZGIFVMIFPRIQCPRQOKHNWYAWZVLHQRTJZUJZBOKGVYUJZOWKHDTPYVEQGBEUDSORGBYBWZNDTNIWTDMPLHWRBXHENCSRGOGILULYMUQEUXFBXHVPGWGCFPIDFOSCEADQFHQTWYHXJYGQZBRNJSNJZCXNISRYADMBEGDXSVLIFPRUDLHRBEOXMWMOYHDNPYNVEAQZPMCYNUENPZBXIQGOLUDZPWXAJHJFHLDDUQGIRHKLAQCTGSGWRGVYUXZPMBWSBLILUDUIXNDTPSIIYHWMCYCRNOKADMVENDSBQTWAPRHPSUQHFAIOGSIMBENABQGCSUKZPNVDNWLBQAQFGXAJFBDIDMAPSHRGNWSMQGPAIOWYUXZDUCAPLVLUDBDPLIMHEHDSPDLJTIYODYAPFVEAOXOJZZJEIYNOXNWGVLGPFNJMPCZJLDOROJGPYHZBLBJGCRSMHKZCFUKMUWMQMPYHJVJEHDSIENUQSOYIFNKGCBBMYEHRUJFPRUCMJEZISHLAQTVYBRYVKGQGOEUDZCZNDFHQGCLHQIDFOXAJYURDMVSUQGPRMWRGJSAQDLAWZOLVDUPLGOXGXGADFCYUQRNTCRUDMPLGVENYSPEIKIRZWYOWUJYGPFADMVYPXMDMWFVLSBQHKMUKACRUDMPSOKFBJGVEHDTTBDTC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UNNUEBXXNQUBOBLFCGWWTADKFLKBSSCCZQKJGQHTJXUKROICJAYEIIYELVBWQWEDRPCAQTKRHDXXRDGRUCMYVLLFPWQHKAKDTOSWXXERRCSSSIDTDUEEAXANLELSKUHTQPWYIWQEROEDXGAKITAWMKQMADBRODQXJQZKOGVSYNHXXAXLBZFMGTPPVWADEXWQAHQNUHMJQJUXUWGQJKRXUEHRLIYTHOPMWJNWWNOMEUIYSWKXGTHXREGTXSOJNNDUUORKXKYTCDNKSULRKBLPCCMGJUHDAXCJTXRUYYROBZAPZTGCYIYFNZJQAEMPISPQQFCWMIORAYIPVPJQQMCTXDHBBFZDRBVMCQTXSPCCPJTXKEHVCEBMZMGHYLPVZOOLRBHNDDMHAEUYOLGGNTGDZSMCFVLOYQHAYUOYCVPBTYRUAUNUREKGDWCSKTJMAKIVYHPIMZFUD

浪里小神龙

可以将图片先保存到设备的某个目录下,然后在数据库表里面存储相应的路径。用的时候通过路径获取图片。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Android