Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I m working on document management system.i m storing the documents in bytes.
now i need to search a document by its content...how can i search a file which is stored in bytes format...?can anyone help me out with this???
Posted

This web site is for posting articles or examples that you can share with others. You should rather post questions on StackOverflow.com.

Regards,
Satyaki Ghosh
 
Share this answer
 
Well, I can't do that much coding for you, and you haven't shared what you have do so far. It's a bit difficult to say what you can do with your existing code as well.

But here's a thing, first read the byte[] & store it in a string form.
Then search your word from that string. :)

-KR
 
Share this answer
 
i will suggest you also store contents or meta data of document in another column and perform searching on meta data.Rather then read all bytes from db and convert one by one into string and match searching string in that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900