from c# to java web service with pictures (MTOM)
This is from C# coding.
public byte GetCarPhoto(int carID)
//search for the location of the images store
string fname = "c:\\temp\\images\\" + carID.ToString() + ".jpg";
FileStream fs = new FileStream(fname, FileMode.Open);
BinaryReader reader = new BinaryReader(fs);
byte image = new byte[fs.Length];
image = reader.ReadBytes((int)fs.Length);
how do i implement this kind of code into java??
i am trying to do a web service to get binary data(pictures from my local drive)