thoitbk
thoitbk

Reputation: 269

How to extract rar file (AppEngineFile) in Google App Engine

My application requires extracting rar file in Google App Engine. I can extract rar file using this library but it only supports java.io.File and does not support AppEngineFile. I can not find any solution to solve this problem. Someone have any ideas ?

Thanks in advance

Upvotes: 1

Views: 453

Answers (1)

georgerw
georgerw

Reputation: 146

The junrar library says it takes an InputStream, not a file.

You may want to try uploading your rar files to BlobStore instead of reading from the filesystem. Then you can use BlobstoreInputStream to read the data into unrar.

Note that since you can't write to the filesystem, you'll need to store the unpacked data back into the blobstore or datastore.

Upvotes: 1

Related Questions