lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blazingwolf7 <blazingwo...@gmail.com>
Subject Re: Storing image with Lucene
Date Thu, 03 Dec 2009 07:01:08 GMT

I found a solution already.

That is to convert the image from byte array of the image >> string
Then the string will be stored in the index. But beware, the byte will have
to be encoded to Base64
or the image retrieved will be mess up(meaning the pic is totally ruin)



blazingwolf7 wrote:
> 
> oh...thanks for the suggestion. I will try using the idea.If it works I
> will let u all know..
> 
> 
> Anshum-2 wrote:
>> 
>> Hi Vaijanath,
>> Just wanted to know if you can perform a search on the binary field (as I
>> haven't tried this ever) ?
>> ------Original Message------
>> From: Rao, Vaijanath
>> To: java-user@lucene.apache.org
>> ReplyTo: java-user@lucene.apache.org
>> Subject: RE: Storing image with Lucene
>> Sent: Dec 3, 2009 08:27
>> 
>> Hi,
>> 
>> Yes you can, create a binary field which you can use to store the image
>> in.
>> Field(String name, Reader reader)  Use this to store your image and use
>> binaryValue() to get the image back.
>> 
>> You can also look at storing the features of the image into the index in
>> similar way.
>> 
>> --Thanks and Regards
>> Vaijanath N. Rao
>> 
>> -----Original Message-----
>> From: blazingwolf7 [mailto:blazingwolf7@gmail.com] 
>> Sent: Thursday, December 03, 2009 8:02 AM
>> To: java-user@lucene.apache.org
>> Subject: Storing image with Lucene
>> 
>> 
>> Hi,
>> 
>> As per title...is it possible to store image using Lucene? And if its
>> possible...how can I do that?
>> 
>> Thanks
>> --
>> View this message in context:
>> http://old.nabble.com/Storing-image-with-Lucene-tp26620107p26620107.html
>> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>> 
>> 
>> 
>> Sent from BlackBerry® on Airtel
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Storing-image-with-Lucene-tp26620107p26621710.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message