Examples of fetchData()


Examples of com.google.appengine.api.blobstore.BlobstoreService.fetchData()

        Map<String, List<BlobKey>> blobs = blobService.getUploads(req);
        List<BlobKey> blobKeys = blobs.get("template");
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        if (blobKeys != null && blobKeys.size() > 0) {
          for (BlobKey blobKey : blobKeys) {
            b = blobService.fetchData(blobKey, 0, 20);
            if (b.length > 0) {
              FileService fileService = FileServiceFactory
                  .getFileService();
              AppEngineFile file = fileService
                  .getBlobFile(blobKey);
View Full Code Here

Examples of com.google.appengine.api.blobstore.BlobstoreService.fetchData()

            Map<String, List<BlobKey>> blobs = blobService
                .getUploads(req);
            List<BlobKey> blobKeys = blobs.get("img");
            if (blobKeys != null && blobKeys.size() > 0) {
              for (BlobKey blobKey : blobKeys) {
                byte[] arr = blobService.fetchData(blobKey, 0,
                    20);
                if (arr.length > 0) {
                  obj.setThumb(imageService
                      .getServingUrl(blobKey));
                }
View Full Code Here

Examples of com.google.appengine.api.blobstore.BlobstoreService.fetchData()

          Map<String, List<BlobKey>> blobs = blobService
              .getUploads(req);
          List<BlobKey> blobKeys = blobs.get("img");
          if (blobKeys != null && blobKeys.size() > 0) {
            for (BlobKey blobKey : blobKeys) {
              byte[] arr = blobService.fetchData(blobKey, 0, 20);
              if (arr.length > 0) {
                obj.setThumb(imageService
                    .getServingUrl(blobKey));
              }
            }
View Full Code Here

Examples of com.google.appengine.api.blobstore.BlobstoreService.fetchData()

          contentRangeHeader = String.format("bytes %d-%d/%d", previousByte, lastByte,
            photoEntry.getOriginalFileSize());
         
          BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
          bytes = blobstoreService.fetchData(photoEntry.getBlobKey(), previousByte, lastByte);
        } else {
          bytes = dataChunkDao.getBytes(photoEntry.getId(), previousByte);
         
          if (bytes == null) {
            throw new IllegalArgumentException(String.format("PhotoEntry with id '%s' does not "
View Full Code Here

Examples of com.google.appengine.api.blobstore.BlobstoreService.fetchData()

      message.setTextBody("YouTube Direct was unable to upload a photo submission to Picasa.\n\n"
          + "There might be a service issue, or your Picasa configuration might be incorrect.\n\n"
          + "The photo in question is attached.");

      BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
      byte[] photoBytes = blobstoreService.fetchData(
          photoEntry.getBlobKey(), 0, photoEntry.getOriginalFileSize() - 1);

      MailService.Attachment photoAttachment =
          new MailService.Attachment(photoEntry.getOriginalFileName(), photoBytes);
      message.setAttachments(photoAttachment);
View Full Code Here

Examples of com.google.appengine.api.blobstore.BlobstoreService.fetchData()

      final BlobstoreService blobstoreService = BlobstoreServiceFactory
          .getBlobstoreService();

      BlobInfo info = new BlobInfoFactory().loadBlobInfo(csvBlobKey);

      byte[] bytes = blobstoreService.fetchData(csvBlobKey, 0,
          info.getSize());

      final ZipInputStream zipIn = new ZipInputStream(
          new ByteArrayInputStream(bytes));
View Full Code Here

Examples of com.google.appengine.api.blobstore.BlobstoreService.fetchData()

        response.setContentLength((int) blobInfo.getSize());
        response.setHeader(
            "Content-disposition",
            "attachment;" + blobInfo.getFilename());
        byte[] data =
            blobstoreService.fetchData(blobKey, 0, blobInfo.getSize());
        response.getOutputStream().write(data);
        response.flushBuffer();
        return null;
    }
View Full Code Here

Examples of com.jme3.scene.plugins.blender.file.Pointer.fetchData()

        // reading influence ipos for the constraints
        AnimationHelper animationHelper = blenderContext.getHelper(AnimationHelper.class);
        Map<String, Map<String, Ipo>> constraintsIpos = new HashMap<String, Map<String, Ipo>>();
        Pointer pActions = (Pointer) objectStructure.getFieldValue("action");
        if (pActions.isNotNull()) {
            List<Structure> actions = pActions.fetchData();
            for (Structure action : actions) {
                Structure chanbase = (Structure) action.getFieldValue("chanbase");
                List<Structure> actionChannels = chanbase.evaluateListBase();
                for (Structure actionChannel : actionChannels) {
                    Map<String, Ipo> ipos = new HashMap<String, Ipo>();
View Full Code Here

Examples of com.jme3.scene.plugins.blender.file.Pointer.fetchData()

                    List<Structure> constraintChannels = constChannels.evaluateListBase();
                    for (Structure constraintChannel : constraintChannels) {
                        Pointer pIpo = (Pointer) constraintChannel.getFieldValue("ipo");
                        if (pIpo.isNotNull()) {
                            String constraintName = constraintChannel.getFieldValue("name").toString();
                            Ipo ipo = animationHelper.fromIpoStructure(pIpo.fetchData().get(0), blenderContext);
                            ipos.put(constraintName, ipo);
                        }
                    }
                    String actionName = actionChannel.getFieldValue("name").toString();
                    constraintsIpos.put(actionName, ipos);
View Full Code Here

Examples of com.jme3.scene.plugins.blender.file.Pointer.fetchData()

        }

        // loading constraints connected with the object's bones
        Pointer pPose = (Pointer) objectStructure.getFieldValue("pose");
        if (pPose.isNotNull()) {
            List<Structure> poseChannels = ((Structure) pPose.fetchData().get(0).getFieldValue("chanbase")).evaluateListBase();
            for (Structure poseChannel : poseChannels) {
                List<Constraint> constraintsList = new ArrayList<Constraint>();
                Long boneOMA = Long.valueOf(((Pointer) poseChannel.getFieldValue("bone")).getOldMemoryAddress());

                // the name is read directly from structure because bone might
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.