like i wrote...in the last iteration you read less than MAX_BLOB_FETCH_SIZE data but write all this bytes to the writer. the trailing bytes are not nulled and there is no bytes-read end marker or something like that.
so your resulting blobs are larger than the unzipped content and allways of length MAX_BLOB_FETCH_SIZE * iterations. first example should work with ByteBuffer bb = ByteBuffer.wrap(buffer,0,read); JPG itself has some kind of EOF marker...but who knows what happens with this many subformats. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/aUUzlZvd9foJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.