Read python pickle data stream in Android
问题 I have this file which contains python pickle data stream. I've to read contents of this file in Android. For example, if I wanted to read this data stream in python, I'd just use the following code queue = pickle.load(open('filename', 'rb')) I want to achieve same thing in Android such that I can read this pickle stream data and store it in some kind of collection. How can I achieve this? 回答1: UPDATE: This only works for pickle protocols 2 and 3 . I think the Unpickler class from Pyrolite