如何检测bif文件中嵌入的jpg的开头和结尾. VB.net [英] How to detect the beginning and the end of an embedded jpg in a bif file. VB.net

查看:98
本文介绍了如何检测bif文件中嵌入的jpg的开头和结尾. VB.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个bif文件,其中包含jpg照片和很多元数据.是由安全摄像机拍摄的照片.我需要使用vb.net将图片加载到图片框中,但是如果使用Image.FromFile函数加载图片,则会发生错误. Irfanview可以可视化bif文件,但InternetExplorer或图片管理器失败.需要从bif中提取jpg文件,但我不知道如何.需要帮助.

对不起,我的英语不好.
谢谢

I have a bif file that contains a jpg photo and a lot of metadata. Is a photo make by a security camera. I need to load the photo in a picturebox using vb.net., but if I load the photo using Image.FromFile function, an error occurs. Irfanview can visualize the bif file but InternetExplorer or Picture manager fails. In need to extract the jpg file from the bif but I don’t know how. Help is needed.

Sorry for my bad English.
Thanks

推荐答案

我怀疑您需要能够充分理解jpg格式才能读取告诉您文件长度的元数据,并且仅读取那些字节,或者您需要知道元数据的格式,以便可以搜索元数据的开头.
I suspect you need to be able to understand the jpg format sufficiently to read the metadata that tells you the length of the file and only read those bytes, or you need to know the format of the metadata so you can search for the beginning of it.


这篇关于如何检测bif文件中嵌入的jpg的开头和结尾. VB.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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