Reading more than 1mb of data from a BlobstoreInputStream will throw an IOException “Blob fetch size too large.”
You can use the ChainedBlobstoreInputStream class in the answer below to solve this problem.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve created a simple wrapper class that solves this problem. You should be able to directly swap ChainedBlobstoreInputStream for BlobstoreInputStream. I haven’t tested the mark(), markSupported() or reset() methods.
You may use this code however you wish.