Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Regular Contributor
Posts: 51
Registered: ‎12-07-2011
My Device: 9800
My Carrier: vodafone

passing vector to input stream

in java we can open a vector i inputstream , but am not able to get equivalent in blackberry. i am pasting java code can u pls help me with the corresponding blackberry code .


Thank you .


The java code is


Vector theStreams = new Vector();

String path="E:/test/TestWorkSpace/TestProject/";
File fnew = new File(path+"testing_videos.zip");
FileOutputStream fos = new FileOutputStream(fnew);
DataOutputStream dos = new DataOutputStream(fos);

FileInputStream fin = new FileInputStream(path+"testing_videos.zip.0");

FileInputStream fin1 = new FileInputStream(path+"testing_videos.zip.1");

InputStream in = new SequenceInputStream(theStreams.elements());

BufferedInputStream bis = new BufferedInputStream(in);
DataInputStream dis = new DataInputStream(bis);

while (dis.available() != 0) {



plss can anybody help me wth the blackerry equivalent code for the same .