ok, I fixed my issue by making sure that the total chunk I read in is
equaled the total size of the file. Using Bytes.getArray(bytebuff) to
write out and my total file read and write is now the same size.
Thanks,
Noah
On Monday, September 22, 2014 at 6:50:51 AM UTC-4, Carlos Scheidecker wro
Carlos,
I am having the same issue as you. I used below:
for (Row row : rs) {
bytebuff=row.getBytes("data");
byte data[];
data=Bytes.getArray(bytebuff);
out.write(data);
Did you ever find the answer for this?
Thanks,
Noah
On Monday, September 22, 2014 at 6:50:51 AM UTC-4,
I too have saved images in blobs (in development environment admittedly) .
Sample code can be seen here:
https://github.com/acobley/instagrim/blob/master/src/main/java/uk/ac/dundee/computing/aec/instagrim/models/PicModel.java
Note this code uses the org.imgscalr.Scalr to resize and process ima
On Tue, Sep 30, 2014 at 2:25 AM, Robert Coli wrote:
> On Mon, Sep 22, 2014 at 3:50 AM, Carlos Scheidecker
> wrote:
>
>> I can successfully read a file to a ByteBuffer and then write to a
>> Cassandra blob column. However, when I retrieve the value of the column,
>> the size of the ByteBuffer ret
On Mon, Sep 22, 2014 at 3:50 AM, Carlos Scheidecker
wrote:
> I can successfully read a file to a ByteBuffer and then write to a
> Cassandra blob column. However, when I retrieve the value of the column,
> the size of the ByteBuffer retrieved is bigger than the original ByteBuffer
> where the file