在字节数据中搜索文件 [英] Search file in Bytes data

查看:89
本文介绍了在字节数据中搜索文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在处理文档管理system.im以字节存储文档。

现在我需要通过其内容搜索文档...如何搜索存储的文件以字节格式...?任何人都可以帮我解决这个问题???

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???

推荐答案

该网站用于发布您可以与他人分享的文章或示例。您应该在StackOverflow.com上发布问题。



问候,

Satyaki Ghosh
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


嗯,我做不了那么多编码你,你还没有分享到目前为止所做的事情。现在用你现有的代码说你可以做些什么有点困难。



但这是一件事,首先阅读 byte [] &将其存储在字符串表单中。

然后从字符串中搜索你的单词。 :)



-KR
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


我建​​议您还将文档的内容或元数据存储在另一列中并执行搜索meta data.Rather然后读取db中的所有字节并逐个转换为字符串并匹配搜索字符串。
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.


这篇关于在字节数据中搜索文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆