Reputation: 269
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
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