Examples of BlobData


Examples of io.fathom.cloud.blobs.BlobData

            image = imageService.createImage(getProject().getId(), metadata);
        }

        {
            BlobData data = BlobData.build(file);
            image = imageService.uploadData(image, data);
        }

        WrappedImage result = new WrappedImage();
        result.image = toModel(image.getData());
View Full Code Here

Examples of io.fathom.cloud.blobs.BlobData

        ResponseBuilder response;
        ImageLocation imageLocation = image.getLocation();
        if (imageLocation.hasStored()) {
            String cookie = imageLocation.getStored();

            BlobData blob = imageDataService.getImageFile(cookie);

            response = Response.ok().entity(blob.asEntity());

            ByteString md5 = blob.getHash();
            response.header("Content-MD5", Hex.toHex(md5.toByteArray()));
        } else {
            response = Response.status(Status.NO_CONTENT);
        }
View Full Code Here

Examples of io.fathom.cloud.blobs.BlobData

        try (TempFile tempImage = imageClient.downloadImage(imageUri, imageMetadata)) {
            log.info("Creating image record");
            Image image = imageService.createImage(projectId, metadata);

            log.info("Uploading image data");
            BlobData blobData = BlobData.build(tempImage.getFile());
            image = imageService.uploadData(image, blobData);

            return image;
        }
    }
View Full Code Here

Examples of io.fathom.cloud.blobs.BlobData

                }
            }
        }

        if (localCache.exists()) {
            BlobData is = new BlobData(localCache, key);
            return is;
        } else {
            return null;
        }
    }
View Full Code Here

Examples of io.fathom.cloud.blobs.BlobData

        return sis;
        // }
    }

    BlobData getBlob(BlobStore blobStore, ByteString key) throws IOException {
        final BlobData is = blobStore.find(key);

        if (is == null) {
            throw new IOException("Unable to open storage for range: " + Hex.toHex(key.toByteArray()));
        }
View Full Code Here

Examples of org.hsqldb.types.BlobData

        if (data == null) {
            return null;
        }

        BlobData blob = new BlobDataID(lobID);

        return blob;
    }
View Full Code Here

Examples of org.hsqldb.types.BlobData

                    default :
                        throw Error.runtimeError(ErrorCode.U_S0500,
                                                 "FunctionSQL");
                }

                BlobData string = (BlobData) data[1];

                if (string.length(session) != 1) {
                    throw Error.error(ErrorCode.X_22027);
                }

                byte[] bytes = string.getBytes();

                return ((BinaryType) dataType).trim(session,
                                                    (BlobData) data[3],
                                                    bytes[0], leading,
                                                    trailing);
View Full Code Here

Examples of org.hsqldb.types.BlobData

                if (inputStream == null) {
                    blobId      = resultLobId;
                    inputStream = result.getInputStream();
                } else {
                    BlobData blob = session.createBlob(blobLength);

                    blobId = blob.getId();

                    resultLobs.put(resultLobId, blobId);
                }

                countStream = new CountdownInputStream(inputStream);
View Full Code Here

Examples of org.hsqldb.types.BlobData

    private void registerLobsForRow(Object[] data) {

        for (int i = 0; i < data.length; i++) {
            if (data[i] instanceof BlobDataID) {
                BlobData blob = (BlobDataID) data[i];
                long     id   = resultLobs.get(blob.getId());

                data[i] = database.lobManager.getBlob(id);
            } else if (data[i] instanceof ClobDataID) {
                ClobData clob = (ClobDataID) data[i];
                long     id   = resultLobs.get(clob.getId());
View Full Code Here

Examples of org.hsqldb.types.BlobData

            if (data == null) {
                return null;
            }

            BlobData blob = new BlobDataID(lobID);

            return blob;
        } finally {
            writeLock.unlock();
        }
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.