You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by bharath v <bh...@gmail.com> on 2009/11/18 15:46:25 UTC
Image and Video data in HBASE
HI all ,
I have the data in the formats of '.jpg' and '.avi' .. I intend to store
them in HBase ... Because Hbase treats everything as a stream of Bytes ..
I think I need to convert them into Bytes .. But nothing in o.a.h.h.u.Bytes
seems to be helpful .. I think I need Bytes.toBytes() kinda function..
Is there any alternative ? Any suggestions or opinions ?
Thanks !
Re: Image and Video data in HBASE
Posted by Erik Holstad <er...@gmail.com>.
Hi bharath!
You can have at FileOutputStream, that might be a good match for you.
Regards Erik
Re: Image and Video data in HBASE
Posted by bharath v <bh...@gmail.com>.
If that is the case .. storing is fine .. then how can i retrieve the data
back ?
On Wed, Nov 18, 2009 at 8:26 PM, Murali Krishna. P
<mu...@yahoo.com>wrote:
> Hi Bharath,
> You can treat them as any normal file and read as bytes ??
> http://www.exampledepot.com/egs/java.io/File2ByteArray.html
>
> Thanks,
> Murali Krishna
>
>
>
>
> ________________________________
> From: bharath v <bh...@gmail.com>
> To: hbase-user@hadoop.apache.org
> Sent: Wed, 18 November, 2009 8:16:25 PM
> Subject: Image and Video data in HBASE
>
> HI all ,
>
> I have the data in the formats of '.jpg' and '.avi' .. I intend to store
> them in HBase ... Because Hbase treats everything as a stream of Bytes ..
> I think I need to convert them into Bytes .. But nothing in o.a.h.h.u.Bytes
> seems to be helpful .. I think I need Bytes.toBytes() kinda function..
> Is there any alternative ? Any suggestions or opinions ?
>
> Thanks !
>
Re: Image and Video data in HBASE
Posted by "Murali Krishna. P" <mu...@yahoo.com>.
Hi Bharath,
You can treat them as any normal file and read as bytes ??
http://www.exampledepot.com/egs/java.io/File2ByteArray.html
Thanks,
Murali Krishna
________________________________
From: bharath v <bh...@gmail.com>
To: hbase-user@hadoop.apache.org
Sent: Wed, 18 November, 2009 8:16:25 PM
Subject: Image and Video data in HBASE
HI all ,
I have the data in the formats of '.jpg' and '.avi' .. I intend to store
them in HBase ... Because Hbase treats everything as a stream of Bytes ..
I think I need to convert them into Bytes .. But nothing in o.a.h.h.u.Bytes
seems to be helpful .. I think I need Bytes.toBytes() kinda function..
Is there any alternative ? Any suggestions or opinions ?
Thanks !