cant print the data of the uploaded blob

Posted by Bunny Rabbit on Stack Overflow See other posts from Stack Overflow or by Bunny Rabbit
Published on 2010-04-15T08:27:58Z Indexed on 2010/04/15 8:33 UTC
Read the original article Hit count: 170

Filed under:
|
|
            int start=0,flag=1;
            long size=blobInfo.getSize(),fetched=0,fetch;
            byte temp[] = null;

            while(fetched<size){
               if(size-fetched>MAX_BLOB_FETCH_SIZE)
                    fetch=MAX_BLOB_FETCH_SIZE;
               else
                    fetch=size-fetched;

               temp=blobstoreService.fetchData(blobKey,fetched,fetch );

               fetched+=fetch;
               out.println(temp);
        }

i tried to print the data of the uploaded text file using the above code but it doesn't seem to be working .

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about java