如何从vector转换为Byte数组 [英] How convert from vector to Byte array
本文介绍了如何从vector转换为Byte数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将Vector转换为Byte数组....我有一个包含Byte数组的向量.....我需要将向量转换为Byte数组.. 。
------------------------------------- -------------------------------------------
解决方案
@dpsairam
你的矢量是矢量<字节>或Vector< Byte []>或者向量< byte []>?
亲切的问候,
Jos
< blockquote class =post_quotes>
你的矢量是矢量<字节>或Vector< Byte []>或矢量< byte []>?
你能告诉我这三者之间有什么区别
@dpsairam
A Vector< Byte>包含Byte类型的对象;矢量<字节[]>包含数组,每个元素都是一个Byte类型的对象。向量< byte []>包含字节数组;它们是原始类型。
亲切的问候,
Jos
Hi,
How to convert a Vector to a Byte array....i have vector which contains a Byte array.....i need to convert the vector into Byte array...
--------------------------------------------------------------------------------
解决方案
@dpsairam
Is your vector a Vector<Byte> or a Vector<Byte[]> or a Vector<byte[]>?
kind regards,
Jos
Is your vector a Vector<Byte> or a Vector<Byte[]> or a Vector<byte[]>?
can you tell me what is the difference between these three
@dpsairam
A Vector<Byte> contains objects of type Byte; a Vector<Byte[]> contains arrays and each element is a Byte type object. A Vector<byte[]> contains arrays of bytes; they are of primitive type.
kind regards,
Jos
这篇关于如何从vector转换为Byte数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文